From: jadamson@partners.org (Joel J. Adamson)
To: Wei <william.wtang@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to put mode Info into comment header of program?
Date: Wed, 23 Apr 2008 10:44:49 -0400 [thread overview]
Message-ID: <87zlrkfx5q.fsf@W0053328.mgh.harvard.edu> (raw)
In-Reply-To: <6b8bad34-151e-4d71-a928-14277555d573@26g2000hsk.googlegroups.com> (Wei's message of "Tue, 22 Apr 2008 14:58:06 -0700 (PDT)")
Wei <william.wtang@gmail.com> writes:
> Hi,
>
> I am not sure if this is a trivial question. But it definitely seems
> non-trivial to me.
>
> Recently I browse some common lisp code written for Artificial
> Intelligence, which can be found at http://aima.cs.berkeley.edu/lisp/doc/overview.html.
>
> I think the author uses Emacs for his common lisp programming, The
> interesting part is on the top of each of his lisp program, he has a
> line like ";;; -*- Mode: Lisp; Syntax: Common-Lisp; -*- File:
> utilities.lisp". I think this is automatic inserted through some
> mechanism and could be used for other programming language mode also,
> such as cc-mode.
>
> However, I searched over goolge for quite a while and couldn't find
> what kind of setting can enable this.
You may want auto-insert-mode; its associated variables perform
auto-insertion of headers for source code in various languages. You can
also customize it on a per-directory basis for specific projects.
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj
The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.
prev parent reply other threads:[~2008-04-23 14:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 21:58 How to put mode Info into comment header of program? Wei
2008-04-22 22:59 ` Pascal Bourguignon
2008-04-23 14:52 ` Johan Bockgård
2008-04-23 14:44 ` Joel J. Adamson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zlrkfx5q.fsf@W0053328.mgh.harvard.edu \
--to=jadamson@partners.org \
--cc=help-gnu-emacs@gnu.org \
--cc=william.wtang@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).