[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoinsert with TeX/LaTeX

From: William Thompson
Subject: Re: autoinsert with TeX/LaTeX
Date: Wed, 23 Jul 2003 14:46:06 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Hmmm, that does something, but instead of loading the file /usr/local/inputs/tex-insert.tex, it tries to build up the initial LaTeX commands on the fly.

Thanks anyway,

Bill Thompson

Kevin Rodgers wrote:
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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]