Variable: electric-layout-mode-hook
electric-layout-mode-hook is a customizable variable defined in
electric.el.gz.
Value
nil
Documentation
Hook run after entering or leaving electric-layout-mode(var)/electric-layout-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in /usr/src/emacs/lisp/electric.el.gz
;;;###autoload
(define-minor-mode electric-layout-mode
"Automatically insert newlines around some chars.
The variable `electric-layout-rules' says when and how to insert newlines."
:global t :group 'electricity
(cond (electric-layout-mode
(add-hook 'post-self-insert-hook
#'electric-layout-post-self-insert-function
40))
(t
(remove-hook 'post-self-insert-hook
#'electric-layout-post-self-insert-function))))