auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] emaxima environments ($, language-specific indentation)


From: Joost Kremers
Subject: Re: [AUCTeX] emaxima environments ($, language-specific indentation)
Date: Wed, 12 Mar 2014 16:34:40 +0100
User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1

On Wed, Mar 12 2014, Tassilo Horn <address@hidden> 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




reply via email to

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