unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Franck Joncourt <franck.joncourt@wanadoo.fr>
To: help-gnu-emacs@gnu.org
Subject: Insert headers in new file
Date: Tue, 22 May 2007 22:13:53 +0200	[thread overview]
Message-ID: <20070522201353.GC3668@toystory.lan> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 720 bytes --]

Hi,

I am trying to include header in the new files I open with emacs, and I
would like to know what is the best way to do it.

I am currently using auto-insert, so here is a part of my .emacs
configuration file :

(add-hook 'find-file-hooks 'auto-insert)
(load-library "autoinsert")
(setq auto-insert-directory "~/emacs/")
(setq auto-insert-alist
        (append '((c-mode .  "cc-insert.c"))
	                 auto-insert-alist))

This is just a start, but it works fine.

Is there is better way to do it ?

Thanks for any help.

-- 
Franck Joncourt
http://www.debian.org - http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

             reply	other threads:[~2007-05-22 20:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22 20:13 Franck Joncourt [this message]
2007-05-22 20:20 ` Insert headers in new file Drew Adams
2007-05-24 21:50   ` Franck Joncourt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070522201353.GC3668@toystory.lan \
    --to=franck.joncourt@wanadoo.fr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).