From: pietru@caramail.com
To: Gregory Heytings <gregory@heytings.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Changing into greek glyphs in texinfo-mode
Date: Mon, 1 Feb 2021 15:02:10 +0100 [thread overview]
Message-ID: <trinity-7dc905c9-19bb-4b64-96a0-a3e087a08207-1612188130079@3c-app-mailcom-bs14> (raw)
In-Reply-To: <32cf26fdca5f4d310233@heytings.org>
> 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)))
>
next prev parent reply other threads:[~2021-02-01 14:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-31 13:18 Changing into greek glyphs in texinfo-mode pietru
2021-01-31 21:03 ` pietru
2021-01-31 22:08 ` Stefan Monnier
2021-01-31 22:17 ` pietru
2021-02-01 13:35 ` pietru
2021-02-01 13:51 ` Gregory Heytings
2021-02-01 14:02 ` pietru [this message]
2021-02-01 14:01 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-02-01 14:59 ` pietru
2021-02-01 17:30 ` pietru
2021-02-02 4:10 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-02-02 5:04 ` pietru
2021-02-02 12:56 ` pietru
2021-02-02 13:26 ` pietru
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-7dc905c9-19bb-4b64-96a0-a3e087a08207-1612188130079@3c-app-mailcom-bs14 \
--to=pietru@caramail.com \
--cc=gregory@heytings.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.