William Thompson wrote:
I've had the following lines in my .emacs file for a long time.
; Set Emacs up so that the file "tex-insert.tex" is automatically
inserted
; into any new ".tex" file.
(load "autoinsert")
(setq auto-insert-directory "/usr/local/inputs/")
However, in Emacs 21.2 this doesn't seem to work. I don't get the
file /usr/local/inputs/tex-insert.tex inserted into new ".tex" files.
Is there a new syntax I should be using?
From emacs-21.3/lisp/autoinsert.el:
;; To use:
;; (add-hook 'find-file-hooks 'auto-insert)
;; setq auto-insert-directory to an appropriate slash-terminated value
;;
;; You can also customize the variable `auto-insert-mode' to load the
;; package. Alternatively, add the following to your .emacs file:
;; (auto-insert-mode 1)