I'm using the
comment package for the
comment environment. This environment cannot be indented, just like the
verbatim environment. How can I configure AUCTeX to not indent this environment? Thanks in advance.
The steps explained here worked for me. Specifically, I added the following to my
(add-to-list 'LaTeX-verbatim-environments "pycode") (add-to-list 'LaTeX-indent-environment-list '("pycode" current-indentation))
More information is available under
(info "(auctex)Verbatim content") and
After I did an
eval-region on these lines, I had to reload the
.tex file that I was working on in Emacs for them to take effect.