From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: selecting a major mode -- more newbie questions Date: Wed, 25 Sep 2002 17:57:52 GMT Organization: Genuity, Woburn, MA Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1032977180 5257 127.0.0.1 (25 Sep 2002 18:06:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 25 Sep 2002 18:06:20 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17uGYE-0001Mf-00 for ; Wed, 25 Sep 2002 20:06:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17uGYL-0000hj-00; Wed, 25 Sep 2002 14:06:25 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!news.gtei.net!paloalto-snr1.gtei.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: never X-Newsreader: trn 4.0-test72 (19 April 1999) Originator: barmar@genuity.net (Barry Margolin) Original-Lines: 20 Original-X-Trace: /Kkf2J+8+cdCyaTX/GEa3z+Tol6pmDYw/12hbNgw9CL2vdTdnJGty+F9xo1I53Z3Id7cJBrQdSLc!atXV5qjRYeXxvNG20MEnVolaPGrwoaVb1FMQYCgBJygF+7k4HE5LsnU0DfYmPVcBLO3/5mdJdudJ!Kogmhmyw5G1RpQ== Original-X-Complaints-To: abuse@gte.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Original-NNTP-Posting-Date: Wed, 25 Sep 2002 17:57:52 GMT Original-Distribution: world Original-Xref: nntp.stanford.edu gnu.emacs.help:105312 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1864 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1864 In article , Robert P. J. Day wrote: > > just to make sure i've got a complete list, i see four ways to >invoke a major mode when editing a file -- any other ways i've left >out? (the examples i show are based on my wanting to edit XML) > >1) explicitly with "M-x" >2) adding to .emacs the appropriate auto-mode-alist setting, as in: >3) adding a directive in the first non-blank like, as in >4) adding (within comments at the bottom of the file): There's also interpreter-mode-alist, which applies to files whose first line starts with "#!" and matches against the rest of the line. -- Barry Margolin, barmar@genuity.net Genuity, Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.