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

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

Re: Changing into greek glyphs in texinfo-mode


From: Gregory Heytings
Subject: Re: Changing into greek glyphs in texinfo-mode
Date: Mon, 01 Feb 2021 13:51:21 +0000



Does anybody have a strategy how to do this thing? I do not think I should do a replacement, only for display, which I can turn on or off.


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]