[Top][All Lists]

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

Re: [AUCTeX] automatic TeX-fold-paragraph after newline?

From: Ralf Angeli
Subject: Re: [AUCTeX] automatic TeX-fold-paragraph after newline?
Date: Wed, 15 Oct 2008 18:42:58 +0200

* Joost Kremers (2008-10-15) writes:

> I just added the following code to my .emacs, so that hitting RET (or M-RET
> in a list environment) automatically runs TeX-fold-paragraph on the text
> I've just typed:
> (defadvice TeX-newline (before TeX-fold activate)
>   (interactive)
>   (TeX-fold-paragraph))
> (defadvice LaTeX-insert-item (before TeX-fold activate)
>   (interactive)
>   (TeX-fold-paragraph))
> I'm wondering, though: is there perhaps a better way to do this? I know I
> can customise TeX-newline-function, but that doesn't work for M-RET.
> If there isn't a better way, would it be something useful to add to AUCTeX?

There is `TeX-fold-auto'.  The behavior with respect to `M-<RET>' is not
optimal, however.


reply via email to

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