

GitHub - Malabarba/rich-minority: Emacs package for hiding and/or highlighting t...
source link: https://github.com/Malabarba/rich-minority
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.org
rich-minority-mode
Emacs package for hiding and/or highlighting the list of minor-modes in the mode-line.
Usage
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
List of minor mode names that will be hidden
from the minor-modes list. Use this to hide only a few modes that
are always active and don’t really contribute information. eg:
(setq rm-blacklist (format "^ \\(%s\\)$" (mapconcat #'identity '("Fly.*" "Projectile.*" "PgLn") "\\|")))
rm-whitelist
List of minor mode names that are allowed on
the minor-modes list. Use this to hide all but a few modes.
rm-text-properties
List text properties to apply to each
minor-mode lighter. For instance, by default we highlight Ovwrt
with a red face, so you always know if you’re in overwrite-mode
.
Comparison to Diminish
Diminish is an established player in the mode-line world, who also handles the minor-modes list. What can rich-minority offer in contrast?
- rich-minority is more versatile:
- 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.
- It also offers a whitelist behaviour, in addition to the blacklist;
- It supports highlighting specific minor-modes with completely arbitrary text properties.
- It accepts regexps, instead of having to specify each minor-mode individually;
That is, where in diminish.el you would do this:
- rich-minority takes a cleaner, functional approach. It doesn’t hack
into the
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.
Installation
This package is available from GNU Elpa and Melpa, you may install it
by calling M-x list-packages
.
License
rich-minority is released under the GPLv3 or newer.
Recommend
-
169
Smart-mode-line Contribute Smart Mode Line is a sexy mode-line for Emacs. It aims to be easy to read from small to large monitors by using colors, a prefix...
-
97
The Bug Hunter Automatically debug and bisect your init (.emacs) file! The Bug Hunter is an Emacs library that finds the source of an error or unexpected behavior inside an elisp configuration file (typically ini...
-
91
paradox - Project for modernizing Emacs' Package Menu. With package ratings, usage statistics, customizability, and more.
-
72
Readme.org Names
-
79
README.md aggressive-indent-mode
-
86
README.org spinner.el Add spinners and progress-bars to the mode-line for ongoing operations.
-
63
Readme.org Beacon — Never lose your cursor again This is a global minor-mode. Turn it on everywhere with: (beacon-mode 1)
-
53
README.org camcorder.el Tool for capturing screencasts directly from Emacs. To use it, simply call M-x camcorder-record....
-
12
speed-of-thought-lisp Write emacs-lisp at the speed of thought. This defines a new global minor-mode speed-of-thought-mode, which activates locally on any supported buffer. Currently, only emacs-lisp-mod...
-
9
sws-mode major mode for jade-mode and stylus-mode __S__ignificant __W__hitespace __M__ode. Because Jade and Stylus are both 'significant white space' languages, sws-mode can be used to edit both types of files Lines...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK