This is a minor mode version of
Enter and leave with M-x auto-indent-mode.
Toggle auto indent mode. With prefix arg, turn auto indent mode on iff arg is positive.
Auto indent mode works by invoking
indent-relative for TAB,
indent-relative-maybe as the
auto-fill, and LFD.