[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): do
From: |
Uwe Brauer |
Subject: |
Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^ |
Date: |
Tue, 25 Aug 2015 08:01:27 +0000 |
User-agent: |
Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b34 (linux) |
> Uwe Brauer <address@hidden> writes:
> Hehe, just what David said. I guess you mean 24.1, right? And the
> answer is no. "Very, very recent" means a Git version of emacs which is
> more recent than 4 days. So 25.1 will the first release have that
> feature.
I looked it up again, I meant 24.4.1, which however is not recent enough.
> Not exactly sure what you mean, but when you write \alpha the greek
> letter will be displayed, and when you then continue writing quux so
> that it becomes \alphaquux, it will be displayed "normally" again
> (assuming that you didn't define a pretty char for \alphaquux, of
> course).
What I mean is this:
- when I use x-symbol-mode (a minor mode) typing \alpha gives α.
Lets call this prettifying.
- when I turn x-symbol-mode off, α is displayed again as \alpha.
Lets call this un-prettifying.
latex-pretty-symbols.el which I found in the net is neither a minor mode
nor does it provide a un-prettifying function.
Now your implementation seems also not to be a minor mode the question I
wanted to ask is, does it provide a un-prettifying function?
> prettify-symbols-mode
> I don't use folding but there's the option `TeX-fold-auto' which will
> fold macros automatically as soon as you've inserted them using `C-c
> RET' (TeX-insert-macro). Of course that won't help if you just write
> out the macros.
Right
> You could try adding the lambda which is added to
> `TeX-after-insert-macro-hook' by `TeX-fold-mode' to the buffer local
> value of `post-command-hook'. Maybe that gives you some as-you-type
> folding.
Ok I thought about this hook and I fiddled around with post-command-hook
some time ago in a different context. In my experience this hook leads
to performance problems.
- Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, (continued)
- Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, Mosè Giordano, 2015/08/23
- Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, Uwe Brauer, 2015/08/24
- Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, Mosè Giordano, 2015/08/24
- Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, Uwe Brauer, 2015/08/24
- Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, Mosè Giordano, 2015/08/24
- Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, Tassilo Horn, 2015/08/25
Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, Tassilo Horn, 2015/08/24
Re: [AUCTeX-devel] latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^, Uwe Brauer, 2015/08/29