I code in Erlang, and I dislike the default indentation style that erlang.el
provides: it tends to push code way too far to the right for my likings.
I'd like to have a simple automatic indentation scheme: (1) pressing RET creates a newline with the same indentation level as the previous line; (2) pressing TAB moves the indentation level one level up.
I figured out (2) by adding (defalias 'erlang-indent-command 'tab-to-tab-stop)
to my init.el
, but I can't find a proper command to use for RET to solve (1).