logo       

Autoinsert: msg#00945

emacs.help

Subject: Autoinsert

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


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

News | FAQ | advertise