Variable: auto-insert
auto-insert is a customizable variable defined in autoinsert.el.gz.
Value
not-modified
Documentation
Controls automatic insertion into newly found empty files.
Possible values:
nil do nothing
t insert if possible
other insert if possible, but mark as unmodified.
Insertion is possible when something appropriate is found in
auto-insert-alist. When the insertion is marked as unmodified, you can
save it with C-x C-w (write-file) RET.
This variable is used when the function auto-insert(var)/auto-insert(fun) is called, e.g.
when you do (add-hook 'find-file-hook 'auto-insert).
With M-x auto-insert (auto-insert), this is always treated as if it were t.
Probably introduced at or before Emacs version 19.30.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/autoinsert.el.gz
(defcustom auto-insert 'not-modified
"Controls automatic insertion into newly found empty files.
Possible values:
nil do nothing
t insert if possible
other insert if possible, but mark as unmodified.
Insertion is possible when something appropriate is found in
`auto-insert-alist'. When the insertion is marked as unmodified, you can
save it with \\[write-file] RET.
This variable is used when the function `auto-insert' is called, e.g.
when you do (add-hook \\='find-file-hook \\='auto-insert).
With \\[auto-insert], this is always treated as if it were t."
:type '(choice (const :tag "Insert if possible" t)
(const :tag "Do nothing" nil)
(other :tag "insert if possible, mark as unmodified."
not-modified)))