Variable: auto-insert-mode-hook
auto-insert-mode-hook is a customizable variable defined in
autoinsert.el.gz.
Value
nil
Documentation
Hook run after entering or leaving auto-insert-mode(var)/auto-insert-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/autoinsert.el.gz
;;;###autoload
(define-minor-mode auto-insert-mode
"Toggle Auto-insert mode, a global minor mode.
When Auto-insert mode is enabled, when new files are created you can
insert a template for the file depending on the mode of the buffer."
:global t :group 'auto-insert
(if auto-insert-mode
(add-hook 'find-file-hook 'auto-insert)
(remove-hook 'find-file-hook 'auto-insert)))