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 21:56:16 +0100

Thank you.  Where can I find the code for it?  Does it use prog-mode
functionality?

> Sent: Thursday, February 04, 2021 at 8:39 AM
> From: "Gregory Heytings" <gregory@heytings.org>
> To: pietru@caramail.com
> Cc: help-gnu-emacs@gnu.org, "Stefan Monnier" <monnier@iro.umontreal.ca>
> Subject: Re: Prettify keywords
>
> 
> >
> > 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]