This isn't TeX, per se, but it is about writing TeX, so perhaps it is appropriate. I find that AUCTeX's autoindent works in a way that runs counter to how I work. In case I am not clear, for instance, I like to have footnotes indented as below. When I type the close curly braces and ENTER AUCTeX will bring the footnote back to the first column. I move it back and start a new line, as below, and when I type "paragraph." and hit ENTER it moves "Start" by two spaces.
end.\footnote{%
This is a footnote.}
Start of a new paragraph.
Second line
Whe it happens once it is an annoyance. Hundreds of times is an issue.
I've spent too much time tweaking autoindent and at this point I'd rather just indent by hand. I've searched for how to turn it off in a number of places, including here and on emacs sites, without enlightenment. At the moment this is my .emacs file, but I'm just flailing.
;; JH trying to turn off AUCTeX indenting
(setq LaTeX-indent-environment-list '())
(setq LaTeX-indent-level 0)
(setq LaTeX-item-indent 0)
(setq LaTeX-left-right-indent-level 0)
(setq TeX-brace-indent-level 0)
M-x auto-fill-mode) ?0shouldn't be replaced withnil?C-h ksuggest <enter> runs the function set by the customisable variable TeX-newline-function so perhaps you want to customise that...