help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Forcing a mode


From: Colin S. Miller
Subject: Re: Forcing a mode
Date: Thu, 31 Aug 2006 22:33:55 +0100
User-agent: Thunderbird 1.5.0.4 (X11/20060713)

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.
Cloud


Cloud,


If they have another ending, say, .tc,
adding
(add-to-list 'auto-mode-alist '("\\.tc\\'" . tcl-mode) 't)
to your .emacs file should associate files ending with '.tc'
with tcl-mode.

HTH,
Colin S. Miller

--
Replace the obvious in my email address with the first three letters of the 
hostname to reply.


reply via email to

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