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

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

Re: Prettify keywords


From: pietru
Subject: Re: Prettify keywords
Date: Wed, 3 Feb 2021 23:12:21 +0100


> Sent: Thursday, February 04, 2021 at 10:05 AM
> From: "Gregory Heytings" <gregory@heytings.org>
> To: pietru@caramail.com
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: Prettify keywords
>
>
> >
> > 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

I still have to include the tex symbols to the list.  But I also have
a minor mode for tex commands that prettifies mathematical expressions
that use superscripts and subscripts.  I might include the prettify
keywords for tex in the minor mode itself rather than having the code
separate.

, 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]