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 20:39:07 +0000



You don't want to give me any information at all?

I try with "M-x texinfo-mode", followed by "M-x prettify-mode".


Here's a copy of the message I sent you three days ago:

Follow Stefan's advice:

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

This only affects the way "\alpha" and "\beta" are displayed, and you can turn it on or off with M-x prettify-symbols-mode . If you want to turn it on by default, do:

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


reply via email to

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