[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing into greek glyphs in texinfo-mode
From: |
pietru |
Subject: |
Re: Changing into greek glyphs in texinfo-mode |
Date: |
Mon, 1 Feb 2021 15:02:10 +0100 |
> Sent: Tuesday, February 02, 2021 at 1:51 AM
> From: "Gregory Heytings" <gregory@heytings.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Changing into greek glyphs in texinfo-mode
>
>
> >
> > 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:
Correct. I want to write a replacement code as I find the one in
tex-mode.el too cryptic. For starts I want to try using just
\alpha and \beta.
> (add-hook 'texinfo-mode-hook
> (lambda ()
> (push '("\\alpha" . ?α) prettify-symbols-alist)
> (push '("\\beta" . ?β) prettify-symbols-alist)
> (prettify-symbols-mode)))
>
- Re: Changing into greek glyphs in texinfo-mode, pietru, 2021/02/01
- Re: Changing into greek glyphs in texinfo-mode, Gregory Heytings, 2021/02/01
- Re: Changing into greek glyphs in texinfo-mode,
pietru <=
- Re: Changing into greek glyphs in texinfo-mode, Emanuel Berg, 2021/02/01
- Re: Changing into greek glyphs in texinfo-mode, pietru, 2021/02/01
- Re: Changing into greek glyphs in texinfo-mode, pietru, 2021/02/01
- Re: Changing into greek glyphs in texinfo-mode, Emanuel Berg, 2021/02/01
- Re: Changing into greek glyphs in texinfo-mode, pietru, 2021/02/02
- Re: Changing into greek glyphs in texinfo-mode, pietru, 2021/02/02
- Re: Changing into greek glyphs in texinfo-mode, pietru, 2021/02/02