How do I make it so that after I type RET Emacs automatically correctly indents? Like for example after typing a brace after an if statement I'd like it to indent correctly inside it:
[php]if (true) {
---->Indent
}[/php]
Essentially, I'd like the return key to do C-j