From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Forcing a mode Date: Thu, 31 Aug 2006 22:33:55 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <44f755cc$0$75029$14726298@news.sunsite.dk> References: <1157031630.512450.23530@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157060515 2806 80.91.229.2 (31 Aug 2006 21:41:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2006 21:41:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 31 23:41:52 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 1GIuHx-0003N6-E3 for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Aug 2006 23:41:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GIuHw-0004Ww-Ub for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Aug 2006 17:41:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!kanaga.switch.ch!switch.ch!news-fra1.dfn.de!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Thunderbird 1.5.0.4 (X11/20060713) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1157031630.512450.23530@h48g2000cwc.googlegroups.com> Original-Lines: 21 Original-NNTP-Posting-Host: 62.56.73.25 Original-X-Trace: news.sunsite.dk DXC=6jVWeodIPb3jd^7_dR6Ih5YSB=nbEKnk; YV^fWGR]J8>G1[Bg<0aH50\VT\m5_SIb6U_42Df:PaK8TcL2h5ahoT?kF_>m>CYcV?05M6B]=RkIg7 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:141470 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:37091 Archived-At: 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.