On Wed, Mar 12 2014, Tassilo Horn <[email protected]> wrote:
> 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.

>From what I understand of how things work, isn't the "cleaner" solution
to add "maxima" and "maxima*" to `LaTeX-verbatim-environments', either
via Customize or in ~/.emacs.d/init.el? According to its doc string,
`LaTeX-verbatim-environments-local' is a file-locale variable intended
for used by style files.

-- 
Joost Kremers
Life has its moments


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to