How to change brace indentation style in Emacs/ AUCTeX

240 views Asked by At

I would like to use something like the Allman or BSD style for LaTeX. For example, I would indent the following code like this:

\iflanguage{english}{
    \begin{otherlanguage}{brazilian}
}{
    \begin{otherlanguage}{english}
}

But AUCTeX indents it like this:

\iflanguage{english}{
  \begin{otherlanguage}{brazilian}
    }{
      \begin{otherlanguage}{english}
        }

This question is similar, but the solution does not work since LaTeX is not C-like.

This page describes the variable 'TeX-brace-indent-level', but it controls only {. Does the same exist for }?

0

There are 0 answers