[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
auto-insert-alist
From: |
DrMemory |
Subject: |
auto-insert-alist |
Date: |
Wed, 14 Jul 2004 16:36:53 GMT |
User-agent: |
slrn/0.9.5.7 (UNIX) |
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...
- auto-insert-alist,
DrMemory <=
- Re: auto-insert-alist, kgold, 2004/07/14
- Re: auto-insert-alist, Kevin Rodgers, 2004/07/14
- Re: auto-insert-alist, DrMemory, 2004/07/14
- Re: auto-insert-alist, Kevin Rodgers, 2004/07/15
- Re: auto-insert-alist, DrMemory, 2004/07/15
- Re: auto-insert-alist, Kevin Rodgers, 2004/07/15
- Re: auto-insert-alist, DrMemory, 2004/07/16
- Re: auto-insert-alist, Kevin Rodgers, 2004/07/16