Is it possible to encourage AUCTeX to indent specific environment contents deeper than other environments? My specific case is getting the following indentation for chorus:
\begin{song}
\begin{verse}
Normal 2-spaces indentation
\end{verse}
\begin{chorus}
Would be great to have it indented
deeper.
\end{chorus}
\end{song}
I tried playing with LaTeX-indent-environment-list
. It works well to avoid indenation where inappropriate, the following
(add-to-list 'LaTeX-indent-environment-list '("song" (lambda() 0)))
nicely disabled indentation inside song
, but similar trick:.
(add-to-list 'LaTeX-indent-environment-list
'("chorus" (lambda() (* 3 LaTeX-indent-level))))
ends up closing such environment incorrectly:
\begin{verse}
Normal 2-spaces indentation
\end{verse}
\begin{chorus}
Would be great to have it indented
deeper.
\end{chorus}
Is there any workaround?