indent-according-to-mode

indent-according-to-mode is an interactive compiled Lisp function in `indent.el'.


(indent-according-to-mode)

Indent line in proper way for current major mode.
Normally, this is done by calling the function specified by the
variable `indent-line-function'. However, if the value of that
variable is `indent-relative' or `indent-relative-maybe', handle
it specially (since those functions are used for tabbing); in
that case, indent by aligning to the previous non-blank line.