* 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. -- Ralf _______________________________________________ auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex
