[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: port x-symbol to GNU emacs 24.
From: |
Tassilo Horn |
Subject: |
Re: port x-symbol to GNU emacs 24. |
Date: |
Tue, 18 Aug 2015 10:38:22 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
>>> > > Well, I guess you could use Emacs' built-in
>>> > > `prettify-symbols-mode' in order to display TeX macros using some
>>> > > unicode characters (or preview-latex of course).
>>> > I just switched `prettify-symbols-mode' on in a latex buffer but
>>> > nothing happens to \int or \alpha
>>>
>>> You have to define the symbols in `prettify-symbols-alist'
>>
>> Indeed, and I think it should be a good idea to populate that alist
>> with some non-trivial content to begin with. Any takers?
>
> Siphon off what can be taken from the TeX input method of Quail? That
> should provide a healthy dose of Unicode/TeX relations in
> Emacs-readable form.
I just started to define a `prettify-symbols-alist--TeX' by checking
what Quail provides. However, there is a problem in that (la)tex-mode
and their AUCTeX counterparts don't give \ symbol syntax. Therefore, an
entry like ("\\alpha" . ?α) will never match. And omitting the
backslash isn't possible because then we'd have many false positives for
entries like ("in" . ?∈).
Any ideas how to cope with that situation? Simply giving \ symbol
syntax will break at least AUCTeX (and isn't correct anyhow).
Bye,
Tassilo
- Re: port x-symbol to GNU emacs 24., (continued)
- Re: port x-symbol to GNU emacs 24., Uwe Brauer, 2015/08/14
- Re: port x-symbol to GNU emacs 24., Tassilo Horn, 2015/08/14
- Re: port x-symbol to GNU emacs 24., Stefan Monnier, 2015/08/14
- Re: port x-symbol to GNU emacs 24., Uwe Brauer, 2015/08/14
- Re: port x-symbol to GNU emacs 24., Tassilo Horn, 2015/08/17
- Re: port x-symbol to GNU emacs 24., Eli Zaretskii, 2015/08/17
- Re: port x-symbol to GNU emacs 24., David Kastrup, 2015/08/17
- Re: port x-symbol to GNU emacs 24., Eli Zaretskii, 2015/08/17
- Re: port x-symbol to GNU emacs 24.,
Tassilo Horn <=
- Re: port x-symbol to GNU emacs 24., Stefan Monnier, 2015/08/18
- Re: port x-symbol to GNU emacs 24., Tassilo Horn, 2015/08/19
- Re: port x-symbol to GNU emacs 24., Tassilo Horn, 2015/08/19
- Re: port x-symbol to GNU emacs 24., Tassilo Horn, 2015/08/19
- Re: port x-symbol to GNU emacs 24., Stefan Monnier, 2015/08/19
- Generalizing prettify-symbols-mode (was: port x-symbol to GNU emacs 24.), Tassilo Horn, 2015/08/20
- Re: Generalizing prettify-symbols-mode, Stefan Monnier, 2015/08/20
- Re: Generalizing prettify-symbols-mode, Tassilo Horn, 2015/08/21
- Re: Generalizing prettify-symbols-mode, Tassilo Horn, 2015/08/21
- Re: Generalizing prettify-symbols-mode, Stefan Monnier, 2015/08/21