Skip to content

halfwhole/pride-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pride-mode

Add some pride to Emacs!

screenshot.png

Pride mode is a minor mode that indicates your position in the current buffer through a rainbow flag in the modeline. The flag should extend from left to right as you move in the buffer from top to bottom.

You can scroll the buffer by clicking on the flag area.

Customizations

  • pride-bar-length: length of the pride-mode bar in 4px-wide units.
  • pride-minimum-window-width: minimum width of the window, below which pride-mode will be disabled. This is important because on smaller windows, the bar can potentially push out more relevant information from the modeline.

Notes

This version requires the use of XPM images, which should be supported by default on most Emacs 23 installations.

Integration with Doom Modeline

Find the directory where the doom-modeline package is installed, typically in `.emacs.d/elpa`.

In doom-modeline-segments.el, add the following lines in the appropriate places:

(defvar pride-minimum-window-width)
((and active
      (bound-and-true-p pride-mode)
      (not doom-modeline--limited-width-p)
      (>= (window-width) pride-minimum-window-width))
 (concat
  (doom-modeline-spc)
  (doom-modeline-spc)
  (propertize (pride-create) 'mouse-face mouse-face)))

Then recompile doom-modeline-segments.el using byte-recompile-file, and you’re good to go.

Credits

Code and idea are very much inspired by nyan-mode.el, written by TeMPOraL.

Releases

No releases published

Packages

No packages published