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 21:27:29 +0000



I am asking where does texinfo-mode call prettify. And which prettify code is it using.


Texinfo-mode does not call prettify-symbols-mode (I believe no mode does that by default), which is why I wrote:

If you want to turn [prettify-symbols-mode] on by default, do:

(add-hook 'texinfo-mode-hook
          (lambda ()
            (push '("\\alpha" . ?α) prettify-symbols-alist)
            (push '("\\beta" . ?β) prettify-symbols-alist)
            (prettify-symbols-mode)))

In the last line, "(prettify-symbols-mode)" calls prettify-symbols-mode. If you want to see the code of "prettify-symbols-mode", type C-h f prettify-symbols-mode RET TAB RET.


reply via email to

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