* automatically insert header
@ 2009-04-10 4:46 luca.pamparana
2009-04-10 5:06 ` Miles Bader
2009-04-10 5:49 ` Drew Adams
0 siblings, 2 replies; 3+ messages in thread
From: luca.pamparana @ 2009-04-10 4:46 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
Whenever I create a new C++ header or code file, I would like emacs to
automatically add a standard header to it that I define as a template.
Can anyone tell me how one can go about doing that?
Many thanks,
Luca
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: automatically insert header
2009-04-10 4:46 automatically insert header luca.pamparana
@ 2009-04-10 5:06 ` Miles Bader
2009-04-10 5:49 ` Drew Adams
1 sibling, 0 replies; 3+ messages in thread
From: Miles Bader @ 2009-04-10 5:06 UTC (permalink / raw)
To: help-gnu-emacs
luca.pamparana@gmail.com writes:
> Whenever I create a new C++ header or code file, I would like emacs to
> automatically add a standard header to it that I define as a template.
> Can anyone tell me how one can go about doing that?
Check out `auto-insert-mode' and `auto-insert-alist'.
Both may be customized (using M-x customize-variable), I believe...
-Miles
--
Optimist, n. A proponent of the doctrine that black is white.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: automatically insert header
2009-04-10 4:46 automatically insert header luca.pamparana
2009-04-10 5:06 ` Miles Bader
@ 2009-04-10 5:49 ` Drew Adams
1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2009-04-10 5:49 UTC (permalink / raw)
To: luca.pamparana, help-gnu-emacs
> Whenever I create a new C++ header or code file, I would like emacs to
> automatically add a standard header to it that I define as a template.
> Can anyone tell me how one can go about doing that?
http://www.emacswiki.org/emacs/AutomaticFileHeaders
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-10 5:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-10 4:46 automatically insert header luca.pamparana
2009-04-10 5:06 ` Miles Bader
2009-04-10 5:49 ` Drew Adams
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).