all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* auto-insert-mode template format
@ 2010-05-19  8:25 Gary .
  0 siblings, 0 replies; only message in thread
From: Gary . @ 2010-05-19  8:25 UTC (permalink / raw)
  To: emacs list

I know I can use skeleton files, and that works okay, I just find the
syntax less easy to read than a simpler one would be. I found by way of
the emacs wiki a document which I thought explained the "simple" format
of auto-insert files
(http://web.archive.org/web/20040604170543/http://www.cogsci.ed.ac.uk/~tkld/auto-insert_toc.html)
but I'm damned if I can get the %-escapes described there to expand.

For example the config:
(define-auto-insert "\\.foo$" "insert.foo_")

where the file "insert.foo_" looks like:
//
//  Filename        : %f
//
doesn't replace %f with the file name as I expected.
(note: it also doesn't work surrounding the %f with `' as indicated on
that webpage, I tried it just to make sure)

Any ideas what I am doing wrong?



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-19  8:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-19  8:25 auto-insert-mode template format Gary .

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.