all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Insert headers in new file
@ 2007-05-22 20:13 Franck Joncourt
  2007-05-22 20:20 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Franck Joncourt @ 2007-05-22 20:13 UTC (permalink / raw)
  To: help-gnu-emacs


[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Insert headers in new file
  2007-05-22 20:13 Insert headers in new file Franck Joncourt
@ 2007-05-22 20:20 ` Drew Adams
  2007-05-24 21:50   ` Franck Joncourt
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2007-05-22 20:20 UTC (permalink / raw)
  To: Franck Joncourt, help-gnu-emacs

> 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 cannot speak to "the best way", but this might help:
http://www.emacswiki.org/cgi-bin/wiki/AutomaticFileHeaders

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Insert headers in new file
  2007-05-22 20:20 ` Drew Adams
@ 2007-05-24 21:50   ` Franck Joncourt
  0 siblings, 0 replies; 3+ messages in thread
From: Franck Joncourt @ 2007-05-24 21:50 UTC (permalink / raw)
  To: help-gnu-emacs


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

On Tue, May 22, 2007 at 01:20:42PM -0700, Drew Adams wrote:
> > 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 cannot speak to "the best way", but this might help:
> http://www.emacswiki.org/cgi-bin/wiki/AutomaticFileHeaders

Sorry, I got your message two days ago and I did not thank you for the
link.

As a matter of fact, I was not looking for the *best way*, but another
method to do it if there was any.

I will give it a try.

Thank you :p!

-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-24 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-22 20:13 Insert headers in new file Franck Joncourt
2007-05-22 20:20 ` Drew Adams
2007-05-24 21:50   ` Franck Joncourt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.