# Why are RET and C-j flipped on AucTeX?

Before installing AucTeX, when I would edit .tex files with emacs, it would automatically indent when I would press enter after typing a line such as . Typing C-j would cause a linebreak without indenting. But after installing AucTeX, the behavior is now reversed - pressing enter breaks the line without indenting, and pressing C-j breaks the line and indents it.

First I wanted to confirm that it's not just me, and make sure it's not a problem with my installation of AucTeX. Second, I wanted to see how to get it so that AucTeX breaks and indents the line when I press enter.

(setq TeX-newline-function 'newline-and-indent)