[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prettify keywords
From: |
pietru |
Subject: |
Re: Prettify keywords |
Date: |
Wed, 3 Feb 2021 23:26:52 +0100 |
Currently I can use the following code, which will take care of
"\alpha" and "\alpha\beta". But not "\alpha-\beta" or
"\alpha+\beta" which are completely appropriate in mathematical
expressions. Can this be achieved such that "\alpha-\beta"
gives α-β.
(defun pretty ()
(push '("\\alpha" . ?α) prettify-symbols-alist)
(push '("\\beta" . ?β) prettify-symbols-alist)
(prettify-symbols-mode))
> Sent: Thursday, February 04, 2021 at 9:41 AM
> From: "Gregory Heytings" <gregory@heytings.org>
> To: pietru@caramail.com
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: Prettify keywords
>
>
> >
> > Have looked at prettify-symbols-mode and it is defined in prog-mode.el.
> > This gets me quite confused
> >
>
> I understand, but it shouldn't confuse you. It happens to be defined in
> the file prog-mode.el, but it is nonetheless independent from prog-mode.
>
> >
> > as I thought that I can only activate a single major mode at a time on a
> > particular buffer.
> >
>
> That's correct indeed.
>
- Re: Prettify keywords, (continued)
- Re: Prettify keywords, pietru, 2021/02/03
- Re: Prettify keywords, Gregory Heytings, 2021/02/03
- Re: Prettify keywords, pietru, 2021/02/03
- Re: Prettify keywords, Gregory Heytings, 2021/02/03
- Re: Prettify keywords, pietru, 2021/02/03
- Re: Prettify keywords, Stefan Monnier, 2021/02/03
- Re: Prettify keywords, Gregory Heytings, 2021/02/03
- Re: Prettify keywords, pietru, 2021/02/03
- Re: Prettify keywords, Gregory Heytings, 2021/02/03
- Re: Prettify keywords, pietru, 2021/02/03
- Re: Prettify keywords,
pietru <=
- Re: Prettify keywords, pietru, 2021/02/03
- Re: Prettify keywords, Stefan Monnier, 2021/02/03
- Re: Prettify keywords, pietru, 2021/02/03