[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forcing a mode
From: |
Phillip Lord |
Subject: |
Re: Forcing a mode |
Date: |
Thu, 31 Aug 2006 16:27:26 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
>>>>> "AB" == Aaron Bingham <bingham@cenix-bioscience.com> writes:
AB> CloudStrife wrote:
>> I have some tcl files that donot have .tcl extension in file
>> name. So when i open them in emacs the tcl mode is not turned
>> on. can i enforce this onto the file.
>>
AB> Hi Cloud,
AB> I don't know quite what you mean by "enforce this onto a file".
AB> Do you mean you want to manually set the mode after you open the
AB> file, or do you want to tell Emacs to permanently treat the file
AB> as Tcl?
AB> If the former, simply use M-x tcl-mode.
I think he wants this to happen automatically.
You can do this with file variables. Sticking
;; -*- mode: tcl -*-
as the first line of the file should work.
Or
;; Local Variables: ***
;; mode: tcl ***
at the end should work. You can replace ";;" with what ever tcl uses
as a comment.
Phil