How can I colorize/propertize the lighter of a minor mode in the mode line?


Refer to the manual:

C-hig (elisp)Properties in Mode

Or in the online manual (which is always for the most recent stable release of Emacs): https://www.gnu.org/software/emacs/manual/html_node/elisp/Properties-in-Mode.html

I think there's no point in quoting an excerpt here -- you need to read the whole page.

  • This is the answer. But please consider summarizing briefly what that node says that answers the question.
    – Drew
    Mar 9 at 15:35
  • I get user-error: Info file elisp does not exist Mar 11 at 22:09
  • If you don't have the manuals then you have an incomplete installation of Emacs. The common way I know of for that to happen is if you are using a Debian-based GNU/Linux distribution (e.g. Ubuntu), as they split Emacs into multiple packages, and do not include the documentation by default. If this describes you, then refer to: emacs.stackexchange.com/q/48211/454
    – phils
    Mar 11 at 22:43
  • Drew: I don't think there's a useful way to summarize this one -- people should read the whole page, so I've edited the answer to say this.
    – phils
    Mar 11 at 22:54
  • I solved. Thanks! Mar 11 at 23:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.