From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Erik Iverson Newsgroups: gmane.emacs.help Subject: Re: FSF like smart header Date: Mon, 19 Jul 2010 15:41:43 -0500 Message-ID: <4C44B887.1060904@ccbr.umn.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279572137 9686 80.91.229.12 (19 Jul 2010 20:42:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Jul 2010 20:42:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 19 22:42:16 2010 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.69) (envelope-from ) id 1OaxAF-0007qw-Dj for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jul 2010 22:42:15 +0200 Original-Received: from localhost ([127.0.0.1]:50775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaxAE-00052X-Tc for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jul 2010 16:42:14 -0400 Original-Received: from [140.186.70.92] (port=40766 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oax9o-00052D-S4 for help-gnu-emacs@gnu.org; Mon, 19 Jul 2010 16:41:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oax9n-0007J0-Jn for help-gnu-emacs@gnu.org; Mon, 19 Jul 2010 16:41:48 -0400 Original-Received: from walleye.ccbr.umn.edu ([128.101.116.11]:1816) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oax9n-0007Id-D3 for help-gnu-emacs@gnu.org; Mon, 19 Jul 2010 16:41:47 -0400 Original-Received: from tadpole.ccbr.umn.edu (tadpole.ccbr.umn.edu [128.101.116.26]) by walleye.ccbr.umn.edu (8.9.3p2/8.9.3) with ESMTP id PAA11334; Mon, 19 Jul 2010 15:41:45 -0500 (CDT) Original-Received: from iron.ccbr.umn.edu (iron.ccbr.umn.edu [128.101.116.194]) by tadpole.ccbr.umn.edu (8.9.3/8.9.3) with ESMTP id PAA05444; Mon, 19 Jul 2010 15:41:43 -0500 (CDT) User-Agent: Thunderbird 2.0.0.23 (X11/20090812) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: NMAP syn scan (4) 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:74208 Archived-At: Andrea Crotti wrote: > 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? http://www.gnu.org/software/emacs/manual/html_node/autotype/Autoinserting.html