In order to get what people like to call smart indentation on
Emacs, the easiest way is to add a couple of lines to the
.emacs configuration to declare that every newline should be indented.
(define-key global-map (kbd "RET") 'newline-and-indent) (setq-default indent-tabs-mode t)
The second line turns-on (the
t at the end means true) the
TAB indentation… if it’s not turned-on by default!