electric-indent-functions

electric-indent-functions is a variable defined in `electric.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

Documentation:
Special hook run to decide whether to auto-indent.
Each function is called with one argument (the inserted char), with
point right after that char, and it should return t to cause indentation,
`no-indent' to prevent indentation or nil to let other functions decide.