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

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

Re: can emacs do this


From: Stefan Monnier
Subject: Re: can emacs do this
Date: Thu, 15 Jan 2015 09:22:49 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> What facilities of emacs can be used for this?

The standard facility for that in recent Emacsen is
`prettify-symbols-mode', which you can set up with something like

   (add-hook 'python-mode-hook
             (lambda ()
               (setq-local prettify-symbols-alist
                           '(("lambda" . ?λ)
                             ("math.sqrt" . ?√)
                             ("math.pi" . ?π)
                             ("sum" . ?Σ)))
               (prettify-symbols-mode 1)))


– Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]