Recently, when editing files in LaTex, upon pressing TAB, I get a huge indentation. Instead, the default behavior used to be to align with respect to previous environment definition. :
I start with this (Example 1):
\begin{align}
\begin{split}
F = ma
\end{split}
\end{align}
Upon pressing TAB in the second row I get something like (Example 2):
\begin{align}
\begin{split}
F = ma
\end{split}
\end{align}
Whereas I would like to just smash the TAB button to get (Example 3):
\begin{align}
\begin{split}
F = ma
\end{split}
\end{align}
Example 3 is what used to be the case but I might have broken something and I don't know what. Now I get Example 2. Also, if I hit the TAB outside of the align environment, I get a huge (12 spaces) displacement, which is also bizarre (previously it wouldn't do that).
I tried adding the following suggestions into my .emacs file:
- Suggestion in the question and first answer of Confusion by the usage of indent-tabs-mode nil
- The suggestion in Why is emacs indenting with tabs even though indent-tabs-mode is nil?