Using the following code in emacs configuration file makes the listed environment as verbatim.
(setq LaTeX-verbatim-environments-local '("Verbatim" "lstlisting"))
How can I add following environment to this list.
\lstnewenvironment{code}[2][]{%
\lstset{#1}%
\mdframed[style=lstlisting,title={#2}]%
}{\endmdframed}
I have tried the following but its not working
(setq LaTeX-verbatim-environments-local '("Verbatim" "lstlisting" "code"))