help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FSF like smart header


From: Andrea Crotti
Subject: FSF like smart header
Date: Mon, 19 Jul 2010 22:37:51 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]