From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: File header/title box ?? Date: Tue, 14 Aug 2007 20:00:02 +0200 Organization: Informatimago Message-ID: <87zm0u574t.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187116837 31448 80.91.229.12 (14 Aug 2007 18:40:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2007 18:40:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 14 20:40:35 2007 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.50) id 1IL1Jf-0002ns-LO for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Aug 2007 20:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IL1Jf-0000jt-6k for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Aug 2007 14:40:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 75 Original-X-Trace: individual.net p5lmXUMRQU2r6I/8aztnTwk3B6erLCt+BwLC3TmqDqFqrks5Uh Cancel-Lock: sha1:NGE2ZTg1ZmZkZDk1ZTMyMGU4OTJjMDRiNWU3YTBmNDFjZjhlYjExMQ== sha1:sAKumc4kf2iSXiQhM3kj+INXsoI= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1.50 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:150963 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:46536 Archived-At: William Case writes: > Hi; > > Does anyone know where I can find a File header/title box tool that I > can use for C, Lisp and/or shell scripts written in GNUemacs? I have > visited the wiki and there is one called header2.el which seems far more > complex than I need. > > Ideally, it would be something that just includes some kind of outline > box (dependent on the modes comments style) with space for name of file, > brief description of programs purpose, author, date and time of last > modification. That is all I need. > > I was about to write a macro to do the above, then thought someone has > probably already created something simple I could use. One style would > suffice. I could edit for different modes. > > Any suggestions, references or copies welcomed. I guess most people use skeleton to do that. I use my own command, M-x pjb-add-header RET (along with M-x pjb-add-change-log-entry and M-x pjb-change-license) which inserts this kind of header (comment style depending on major mode): /* -*- mode:c;coding:utf-8 -*- */ /***************************************************************************** FILE: a.c LANGUAGE: c SYSTEM: POSIX USER-INTERFACE: NONE DESCRIPTION XXX AUTHORS Pascal Bourguignon MODIFICATIONS 2007-08-14 Created. BUGS LEGAL GPL Copyright Pascal Bourguignon 2007 - 2007 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *****************************************************************************/ Have a look at http://darcs.informatimago.com/public/emacs/pjb-sources.el http://www.informatimago.com/develop/emacs/index.html CVS instructions not valid anymore, use: darcs get http://darcs.informatimago.com/public/emacs -- __Pascal Bourguignon__ http://www.informatimago.com/ NOTE: The most fundamental particles in this product are held together by a "gluing" force about which little is currently known and whose adhesive power can therefore not be permanently guaranteed.