[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: can emacs do this

**From**: |
Alexis |

**Subject**: |
Re: can emacs do this |

**Date**: |
Fri, 16 Jan 2015 10:41:01 +1100 |

Dan Espen writes:
>* Rusi <rustompmody@gmail.com> writes:*
>
>*> On Thursday, January 15, 2015 at 7:53:14 PM UTC+5:30, Stefan Monnier wrote:*
>*>> > 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)))*
>*>*
>*>*
>*> Doesn't work in 24.3.1 does it?*
>
>* Looks like 24.4:*
>
>* http://emacsredux.com/blog/2014/08/25/a-peek-at-emacs-24-dot-4-prettify-symbols-mode/*
Perhaps the `pretty-symbols` package, available from MELPA, might work
for those using Emacs < 24.4?
http://github.com/drothlis/pretty-symbols
Alexis.