all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* FSF like smart header
@ 2010-07-19 20:37 Andrea Crotti
  2010-07-19 20:41 ` Erik Iverson
  0 siblings, 1 reply; 9+ messages in thread
From: Andrea Crotti @ 2010-07-19 20:37 UTC (permalink / raw)
  To: help-gnu-emacs

I want to have some nice system to have finally some sort of smart
header in front of some files.

For example it would be nice something like:
when you create a file of c-mode in such directory, add a header on top
with those datas (author time, name of the project etc...)

So I guess I have to add a hook to find-file with some conditions, or is
there something more elaborate?

I would also like to use yasnippet, can I maybe pass some parameters to
a yasnippet snippet to expand automatically some variables (haven't seen
anything like that).

For the timestamp I can use the already nice defined time-stamp
functions...

What do you guys have as personal setup for these kind of things?

Thanks!

PS. another useful useage would be automatic addition of guard in files .h...




^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.8.1279571889.6173.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2010-08-03 18:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-19 20:37 FSF like smart header Andrea Crotti
2010-07-19 20:41 ` Erik Iverson
2010-07-19 22:55   ` Drew Adams
2010-08-03 15:15     ` Andrea Crotti
2010-08-03 15:40       ` Andrea Crotti
2010-08-03 16:22         ` Richard Riley
2010-08-03 16:50           ` Drew Adams
2010-08-03 18:06           ` Andrea Crotti
     [not found] <mailman.8.1279571889.6173.help-gnu-emacs@gnu.org>
2010-07-19 22:15 ` Tim X

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.