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

(electric-indent-mode &optional ARG)

Toggle on-the-fly reindentation (Electric Indent mode).
With a prefix argument ARG, enable Electric Indent mode if ARG is
positive, and disable it otherwise. If called from Lisp, enable
the mode if ARG is omitted or nil.

When enabled, this reindents whenever the hook `electric-indent-functions'
returns non-nil, or if you insert a character from `electric-indent-chars'.

This is a global minor mode. To toggle the mode in a single buffer,
use `electric-indent-local-mode'.