unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Autoinsert
@ 2002-12-30 12:32 Roberto Huelga
  0 siblings, 0 replies; 2+ messages in thread
From: Roberto Huelga @ 2002-12-30 12:32 UTC (permalink / raw)


	Hello to every body.

	I'm starting with the skeletons and autoinsert. Skeletons and abbrevs 
work fine, but the autoinsert doesn't expand the tag.
	In my .emacs file I have the following lines about autoinsert:

(require 'autoinsert)
(add-hook 'find-file-hook 'auto-insert)
(define-auto-insert "\\.\\(H\\|hh\\|hxx\\|hpp\\)\\'" "cxx-header.hh")

	And the cxx-header.hh file is like this:

#ifndef __%B_%E__
#define __%B_%E__

class %@
{

};

#endif

	And nothing is expanded. Someone can help me? (I don't want to use 
skeletons here)


	A lot of Thanks

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

* Re: Autoinsert
       [not found] <mailman.704.1041251691.19936.help-gnu-emacs@gnu.org>
@ 2002-12-30 12:50 ` Chmouel Boudjnah
  0 siblings, 0 replies; 2+ messages in thread
From: Chmouel Boudjnah @ 2002-12-30 12:50 UTC (permalink / raw)


Roberto Huelga <rhuelga@multinterior.com> writes:

> 	I'm starting with the skeletons and autoinsert. Skeletons and
> abbrevs work fine, but the autoinsert doesn't expand the tag.
> 	In my .emacs file I have the following lines about autoinsert:

[...]

> (define-auto-insert "\\.\\(H\\|hh\\|hxx\\|hpp\\)\\'" "cxx-header.hh")

maybe this may work :

(add-to-list 'auto-insert-alist `("\\.\\(H\\|hh\\|hxx\\|hpp\\)\\'" . "cxx-header.hh"))

and be sure that you have the file cxx-header.hh in the directory
defined by the variable auto-insert-directory.

[...]

> 	And nothing is expanded. Someone can help me? (I don't want to use
> skeletons here)

Cheers Chmouel.

-- 
http://www.chmouel.com/

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

end of thread, other threads:[~2002-12-30 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.704.1041251691.19936.help-gnu-emacs@gnu.org>
2002-12-30 12:50 ` Autoinsert Chmouel Boudjnah
2002-12-30 12:32 Autoinsert Roberto Huelga

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).