From: Phil Sainty <psainty@orcon.net.nz>
To: goncholden <goncholden@protonmail.com>
Cc: 53776@debbugs.gnu.org, Stephen Berman <stephen.berman@gmx.net>
Subject: bug#53776: Modeline indicator when using define-minor-mode
Date: Sat, 05 Feb 2022 13:12:58 +1300 [thread overview]
Message-ID: <909303b92c32e7cdc8510bee1c1e881b@webmail.orcon.net.nz> (raw)
In-Reply-To: <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com>
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
prev parent reply other threads:[~2022-02-05 0:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-04 11:55 bug#53776: Modeline indicator when using define-minor-mode goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-04 13:02 ` Stephen Berman
2022-02-04 13:22 ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-04 13:35 ` Stephen Berman
2022-02-04 14:05 ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-04 14:38 ` Stephen Berman
2022-02-04 14:43 ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-04 14:49 ` Stephen Berman
2022-02-05 6:45 ` Lars Ingebrigtsen
2022-02-06 3:39 ` Michael Heerdegen
2022-02-06 12:52 ` Stephen Berman
2022-02-06 21:52 ` Michael Heerdegen
2022-02-06 23:13 ` Stephen Berman
2022-02-06 23:59 ` Michael Heerdegen
2022-02-07 0:28 ` Stephen Berman
2022-02-07 0:51 ` Michael Heerdegen
2022-02-07 22:40 ` Stephen Berman
2022-02-06 17:12 ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-05 0:12 ` Phil Sainty [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=909303b92c32e7cdc8510bee1c1e881b@webmail.orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=53776@debbugs.gnu.org \
--cc=goncholden@protonmail.com \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.