all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregory Heytings <gregory@heytings.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing into greek glyphs in texinfo-mode
Date: Mon, 01 Feb 2021 13:51:21 +0000	[thread overview]
Message-ID: <32cf26fdca5f4d310233@heytings.org> (raw)
In-Reply-To: <trinity-40f8122a-dd98-476b-b7d2-5b7e0a4c797e-1612186529933@3c-app-mailcom-bs14>


>
> 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	other threads:[~2021-02-01 13:51 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 [this message]
2021-02-01 14:02         ` pietru
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=32cf26fdca5f4d310233@heytings.org \
    --to=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.