[Top][All Lists]

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

Re: How to put mode Info into comment header of program?

From: Joel J. Adamson
Subject: Re: How to put mode Info into comment header of program?
Date: Wed, 23 Apr 2008 10:44:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Wei <address@hidden> 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 
> 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 J. Adamson
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key:

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.

reply via email to

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