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: Tassilo Horn
Subject: Re: [AUCTeX] emaxima environments ($, language-specific indentation)
Date: Wed, 12 Mar 2014 17:04:03 +0100
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux)

Joost Kremers <address@hidden> writes:

>> 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.

Yes, you are right.

Bye,
Tassilo




reply via email to

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