Variable: auto-insert-mode

auto-insert-mode is a customizable variable defined in autoinsert.el.gz.

Value

nil

Documentation

Non-nil if Auto-Insert mode is enabled.

See the auto-insert-mode(var)/auto-insert-mode(fun) command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node (emacs)Easy Customization) or call the function auto-insert-mode(var)/auto-insert-mode(fun).

Key Bindings

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)))