unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* auto-insert-alist
@ 2004-07-14 16:36 DrMemory
  2004-07-14 17:41 ` auto-insert-alist kgold
  2004-07-14 17:56 ` auto-insert-alist Kevin Rodgers
  0 siblings, 2 replies; 9+ messages in thread
From: DrMemory @ 2004-07-14 16:36 UTC (permalink / raw)


I am having some trouble with auto-insertion.

According to the documentation, the "Action" can be a filename, in
which case its contents are to be inserted. However, when I try this,
I get no auto-insertion when I visit a new file:

(setq auto-insert-alist
      (append '(((".*ltr.*\\.tex$" . "Letter") . "~/leg/ltr.tex"))
	      auto-insert-alist))

I changed it to:

(setq auto-insert-alist
      (append '(((".*ltr.*\\.tex$" . "Letter") . 
         (insert-file-contents "~/leg/ltr.tex")))
	      auto-insert-alist))

And now I am prompted for autoinsertion, but the result is just to
have the string "~/leg/ltr.tex" inserted in the new file.

I hope someone can tell me what I am doing wrong...

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-07-16 21:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-14 16:36 auto-insert-alist DrMemory
2004-07-14 17:41 ` auto-insert-alist kgold
2004-07-14 17:56 ` auto-insert-alist Kevin Rodgers
2004-07-14 19:36   ` auto-insert-alist DrMemory
2004-07-15 15:54     ` auto-insert-alist Kevin Rodgers
2004-07-15 21:39       ` auto-insert-alist DrMemory
2004-07-15 23:38         ` auto-insert-alist Kevin Rodgers
2004-07-16 21:01           ` auto-insert-alist DrMemory
2004-07-16 21:55             ` auto-insert-alist Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).