auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Setting file-local list variables


From: Ralf Angeli
Subject: Re: [AUCTeX] Setting file-local list variables
Date: Sun, 25 May 2008 19:01:22 +0200

* Mark Elston (2008-05-25) writes:

> %%% eval: (eval-after-load "latex" '(progn
>                    (add-to-list 'LaTeX-verbatim-environments-local
>                                        "CodeListing")
>                    (add-to-list 'LaTeX-verbatim-environments-local
>                                        "OldCodeListing")
>                    (add-to-list 'LaTeX-verbatim-environments-local
>                                         "NewCodeListing")))
> %%% eval: (funcall 'font-latex-setup)
>
> This sets up the buffer-local variable LaTeX-verbatim-environments-local
> and forces font locking to take these new settings into account.

The `eval-after-load' call is unnecessary.  You can directly add values
to the variable.  And I recalled that you don't need to call
`font-latex-setup'.  Calling `font-latex-set-syntactic-keywords' should
suffice.  So you could use something like

%%% eval: (progn (dolist (elt '("CodeListing" "OldCodeListing" 
"NewCodeListing")) (add-to-list 'LaTeX-verbatim-environments-local elt)) 
(font-latex-set-syntactic-keywords))

-- 
Ralf




reply via email to

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