To install this package, run in Emacs:
M-x package-install RET rich-minority RET
Emacs package for hiding and/or highlighting the list of minor-modes in the mode-line.
To activate the enrichment of your minor-modes list, call M-x rich-minority-mode
, or add this to your init file:
(rich-minority-mode 1)
By default, this has a couple of small effects (provided as examples) it is up to you to customize it to your liking with the following three variables:
rm-blacklist
(setq rm-blacklist (format "^ \\(%s\\)$" (mapconcat #'identity '("Fly.*" "Projectile.*" "PgLn") "\\|")))
rm-whitelist
rm-text-properties
Ovwrt
with a red face, so you always know if you’re in overwrite-mode
.Diminish is an established player in the mode-line world, who also handles the minor-modes list. What can rich-minority offer in contrast?
It accepts regexps, instead of having to specify each minor-mode individually; That is, where in diminish.el you would do this:
(diminish 'auto-fill-function)
rich-minority does this:
(add-to-list " Fill" 'rm-blacklist)
where " Fill"
could be any regular expression.
minor-mode-alist
variable.What is rich-minority missing?
It just doesn’t have a quick and simple replacement functionality yet.
However, you can set the display
property of a minor-mode to
whatever string you want and that will function as a replacement.
This package is available from GNU Elpa and Melpa, you may install it
by calling M-x list-packages
.
rich-minority is released under the GPLv3 or newer.
rich-minority-1.0.3.0.20190419.113620.tar.lz | 2021-Mar-16 | 15.0 KiB |
rich-minority-1.0.1.0.20151201.120019.tar.lz | 2020-Dec-14 | 9.91 KiB |