File: autoinsert.el.html
The following defines an association list for text to be
automatically inserted when a new file is created, and a function
which automatically inserts these files; the idea is to insert
default text much as the mode is automatically set using
auto-mode-alist.
To use:
(auto-insert-mode t)
setq auto-insert-directory to an appropriate slash-terminated value
You can also customize the variable auto-insert-mode(var)/auto-insert-mode(fun) to load the
package. Alternatively, add the following to your init file:
(auto-insert-mode 1)
Author: Charlie Martin
Department of Computer Science and
National Biomedical Simulation Resource
Box 3709
Duke University Medical Center
Durham, NC 27710
(crm@cs.duke.edu,mcnc!duke!crm)
Defined variables (7)
auto-insert | Controls automatic insertion into newly found empty files. |
auto-insert-alist | A list specifying text to insert by default into a new file. |
auto-insert-directory | Directory from which auto-inserted files are taken. |
auto-insert-mode | Non-nil if Auto-Insert mode is enabled. |
auto-insert-mode-hook | Hook run after entering or leaving ‘auto-insert-mode’. |
auto-insert-prompt | Prompt to use when querying whether to ‘auto-insert’. |
auto-insert-query | Non-nil means ask user before auto-inserting. |
Defined functions (3)
auto-insert | () |
auto-insert-mode | (&optional ARG) |
define-auto-insert | (CONDITION ACTION &optional AFTER) |