freeimage # -*- tcl -*-
emory.smith at gmail.com
Tue Apr 17 21:16:34 PDT 2007
On Apr 17, 2007, at 3:45 PM, macports-dev-
request at lists.macosforge.org wrote:
> Date: Tue, 17 Apr 2007 22:02:54 +0200
> From: Jochem Huhmann <joh at gmx.net>
> On 2007-04-17, at 12:44, Ryan Schmidt wrote:
>> The portfile for freeimage begins with this line:
>> # -*- tcl -*-
>> I don't know what the line does. I guess it informs some editor
>> that this is a tcl file, but I don't know what editor that would
>> be. Does anyone know?
> It's Emacs.
>> No other portfiles begin with (or contain) such a line, so I would
>> like to remove it for consistency (so that all portfiles begin with
>> the # $Id$ line). Any objection to removing this line?
> Is there any technical merit to consistency here? If not and if you
> absolutely *have* to do something, replace it for clarity with
> # Emacs, this is a -*- tcl -*- file.
> or something like that.
as an alternative, adding the following to your .emacs will tell
emacs to use tcl mode for anything with a filename of "Portfile".
(add-to-list 'auto-mode-alist '("Portfile$" . tcl-mode))
note however that once you do this, any microsoft word documents
saved as "Portfile" and subsequently opened in emacs will be opened
More information about the macports-dev