On Wed, Mar 12 2014, Tassilo Horn <[email protected]> wrote: > Tamas Papp <[email protected]> writes: > >>> I guess the reason is that the value is already needed when >>> initializing font-lock. And the setting of `font-lock-set-defaults' >>> and calling `font-latex-set-syntactic-keywords' is also important. >> >> Thanks, this works fine. Out of curiosity, is there a way to >> re-initialize font-lock with a mode hook? I can of course copy-paste >> the Local variables section to each file I work with, but a more >> automated solution would be nice, too. > > This seems to work for me: > > --8<---------------cut here---------------start------------->8--- > (defun th/LaTeX-maxima-support () > (setq LaTeX-verbatim-environments-local '("maxima" "maxima*")) > (setq font-lock-set-defaults nil) > (font-latex-set-syntactic-keywords)) > > (add-hook 'LaTeX-mode-hook #'th/LaTeX-maxima-support) > --8<---------------cut here---------------end--------------->8--- > > Then I can omit the local variables.
Yes, this does work nicely --- thanks! Best, Tamas _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
