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

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

Re: Prettify keywords


From: Gregory Heytings
Subject: Re: Prettify keywords
Date: Wed, 03 Feb 2021 22:05:00 +0000



Would it be possible to include the code in a minor mode that I am writing for texinfo? The minor mode is called crucible.


I don't understand why you want to create another minor mode, but in principle yes, you can include such code in a minor mode. As you see in the documentation of "define-minor-mode", the last argument "BODY" is executed each time the mode is enabled or disabled. And as you see in the "prettify-symbols-mode" minor mode example, you should embed the code in a conditional to turn it on and off alternately.



reply via email to

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