* 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"))