bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53776: Modeline indicator when using define-minor-mode


From: Phil Sainty
Subject: bug#53776: Modeline indicator when using define-minor-mode
Date: Sat, 05 Feb 2022 13:12:58 +1300
User-agent: Orcon Webmail

On 2022-02-05 02:22, goncholden wrote:
Because one can easily add minor-modes that exceed the mode-line
mini-buffer, is there
the capability of making a hierarchical modeline indicator.

e.g.

Emacs-Lisp
company
Outl
Gon -> rich
    -> gudin
    -> cholden

I've not seen anything which looks like your example, however there
are several libraries available which are designed to reclaim space
in the mode-line by manipulating the appearance of the minor mode
lighter text and/or major mode names.

https://github.com/tarsius/minions turns the minor mode list into
a menu, if you do want a (usually hidden) vertical listing.

If you just want to rename (or hide) certain names, take a look at
https://www.emacswiki.org/emacs/DelightedModes (or alternatively
blackout.el, dim.el, or diminish.el, which are all similar).

https://github.com/Malabarba/rich-minority is an approach which
lets you target rendered lighters with regexps, and modify them
using text properties.

I haven't seen anything "hierarchical" (but then minor modes have
no inherent hierarchy), however you could fake it to some extent by
using conditional elements in your mode-line constructs to combine
multiple lighters into a single multi-mode lighter.  For example:
https://stackoverflow.com/questions/23944477/emacs-how-to-consolidate-lighters-for-minor-modes


-Phil






reply via email to

[Prev in Thread] Current Thread [Next in Thread]