logo       

Re: Autoinsert: msg#00946

emacs.help

Subject: Re: Autoinsert

Roberto Huelga <rhuelga@xxxxxxxxxxxxxxxx> 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/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise