[Top][All Lists]
[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
- [AUCTeX] Setting file-local list variables, Mark Elston, 2008/05/20
- Re: [AUCTeX] Setting file-local list variables, Mark Elston, 2008/05/21
- Re: [AUCTeX] Setting file-local list variables, Ralf Angeli, 2008/05/21
- Re: [AUCTeX] Setting file-local list variables, Mark Elston, 2008/05/22
- Re: [AUCTeX] Setting file-local list variables, Ralf Angeli, 2008/05/23
- Re: [AUCTeX] Setting file-local list variables, Mark Elston, 2008/05/23
- Re: [AUCTeX] Setting file-local list variables, Ralf Angeli, 2008/05/24
- Re: [AUCTeX] Setting file-local list variables, Mark Elston, 2008/05/25
- Re: [AUCTeX] Setting file-local list variables,
Ralf Angeli <=
- Re: [AUCTeX] Setting file-local list variables, Mark Elston, 2008/05/25
Re: [AUCTeX] Setting file-local list variables, Ralf Angeli, 2008/05/21