From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Franck Joncourt Newsgroups: gmane.emacs.help Subject: Insert headers in new file Date: Tue, 22 May 2007 22:13:53 +0200 Message-ID: <20070522201353.GC3668@toystory.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1885286073==" X-Trace: sea.gmane.org 1179864789 1950 80.91.229.12 (22 May 2007 20:13:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 20:13:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 22 22:13:07 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HqajB-0006tK-HZ for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 22:13:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqajC-0008UF-KB for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 16:13:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hqaiy-0008UA-F4 for help-gnu-emacs@gnu.org; Tue, 22 May 2007 16:12:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hqaiw-0008Ty-1I for help-gnu-emacs@gnu.org; Tue, 22 May 2007 16:12:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqaiv-0008Tv-S1 for help-gnu-emacs@gnu.org; Tue, 22 May 2007 16:12:49 -0400 Original-Received: from smtp23.orange.fr ([193.252.22.30]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hqaiv-0000eT-Hs for help-gnu-emacs@gnu.org; Tue, 22 May 2007 16:12:49 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2337.orange.fr (SMTP Server) with ESMTP id BD9061C00096 for ; Tue, 22 May 2007 22:12:47 +0200 (CEST) Original-Received: from lenny-svr.toystory.lan (ARennes-351-1-47-167.w82-126.abo.wanadoo.fr [82.126.59.167]) by mwinf2337.orange.fr (SMTP Server) with ESMTP id 9ED631C00090 for ; Tue, 22 May 2007 22:12:47 +0200 (CEST) X-ME-UUID: 20070522201247650.9ED631C00090@mwinf2337.orange.fr Original-Received: from thialme by lenny-svr.toystory.lan with local (Exim 4.63) (envelope-from ) id 1Hqajx-0001E8-1D for help-gnu-emacs@gnu.org; Tue, 22 May 2007 22:13:53 +0200 X-Operating-System: Linux LENNY-SVR 2.6.18-4-amd64 User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44282 Archived-At: --===============1885286073== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Md/poaVZ8hnGTzuv" Content-Disposition: inline --Md/poaVZ8hnGTzuv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. --=20 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 --Md/poaVZ8hnGTzuv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGU08BxJBTTnXAif4RAvGlAKCP/XxIxqvMTydVyO45OoMOYCFvFwCgwYLq OKm2WadDhpFZv+4htPIbFfk= =nazh -----END PGP SIGNATURE----- --Md/poaVZ8hnGTzuv-- --===============1885286073== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1885286073==--