From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.help Subject: Re: Forcing a mode Date: Thu, 31 Aug 2006 16:27:26 +0100 Organization: University of Newcastle upon Tyne Message-ID: References: <1157031630.512450.23530@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157038959 21918 80.91.229.2 (31 Aug 2006 15:42:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2006 15:42:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 31 17:42:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GIoef-0008VI-0H for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Aug 2006 17:40:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GIoee-0006Ty-8b for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Aug 2006 11:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!192.87.166.29.MISMATCH!txtfeed2.tudelft.nl!tudelft.nl!txtfeed1.tudelft.nl!surfnet.nl!surfnet.nl!feeder.news.heanet.ie!feed4.jnfs.ja.net!feed2.jnfs.ja.net!jnfs.ja.net!news.ncl.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: dinley.ncl.ac.uk Original-X-Trace: ucsnew1.ncl.ac.uk 1157038046 17814 128.240.150.78 (31 Aug 2006 15:27:26 GMT) Original-X-Complaints-To: abuse@newcastle.ac.uk Original-NNTP-Posting-Date: Thu, 31 Aug 2006 15:27:26 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:rpFYdUdtgp3sOq4nM+N7LDOdbgM= Original-Xref: shelby.stanford.edu gnu.emacs.help:141464 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37085 Archived-At: >>>>> "AB" == Aaron Bingham 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