From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Koptelov Newsgroups: gmane.emacs.help Subject: Re: hi Date: 06 Jun 2002 14:20:02 +0400 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1023358549 28704 127.0.0.1 (6 Jun 2002 10:15:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 6 Jun 2002 10:15:49 +0000 (UTC) Cc: Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17FuJ3-0007Sj-00 for ; Thu, 06 Jun 2002 12:15:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17FuIM-00041n-00; Thu, 06 Jun 2002 06:15:06 -0400 Original-Received: from [195.208.53.253] (helo=pluton.ispras.ru) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17FuGV-0003nU-00 for ; Thu, 06 Jun 2002 06:13:12 -0400 Original-Received: (qmail 1542 invoked from network); 6 Jun 2002 10:01:48 -0000 Original-Received: from unknown (HELO fly.ispras.ru) (195.208.32.212) by pluton.ispras.ru with SMTP; 6 Jun 2002 10:01:48 -0000 Original-Received: (from root@localhost) by fly.ispras.ru (8.12.2/8.12.2) id g56ADQt4006725 for help-gnu-emacs@gnu.org.KAV; Thu, 6 Jun 2002 14:13:26 +0400 (MSK) Original-Received: from gate.ispras.ru (ns.ispras.ru [195.208.32.200]) by fly.ispras.ru (8.12.2/8.12.2) with ESMTP id g56ADPFS006712 for ; Thu, 6 Jun 2002 14:13:26 +0400 (MSK) Original-Received: from fog.ispras.ru (fog.ispras.ru [195.208.32.129]) by gate.ispras.ru (8.12.2/8.12.2) with SMTP id g56ADO9v001454 for ; Thu, 6 Jun 2002 14:13:25 +0400 (MSK) Original-Received: tid OAA06008; Fri, 6 Jun 1997 14:12:19 +0300 Original-Received: (from steve@localhost) by pegas.kazbek.ispras.ru (8.11.6/8.11.6) id g56AK2s26514; Thu, 6 Jun 2002 14:20:02 +0400 X-Authentication-Warning: pegas.kazbek.ispras.ru: steve set sender to steve@ispras.ru using -f Original-To: Vikas In-Reply-To: Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:411 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:411 You should add simething like the following in your .emacs file. (add-hook 'c-mode-hook (lambda () (unless (and (buffer-file-name) (file-exists-p (buffer-file-name))) (insert "/*\n" " * author: Vikas\n" " * mailto:vvikas@cse.Buffalo.EDU\n" " */\n")))) This is for C-files. If you're using cperl-mode to edit perl files, add almost the same text for the cperl-mode-hook instead of c-mode-hook (of course, you should use proper comments =) HTH -- Alexander Koptelov Institute for System Programming, Russian Academy of Sciences e-mail: steve@ispras.ru icq: 36208499