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

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

Re: selecting a major mode -- more newbie questions


From: Barry Margolin
Subject: Re: selecting a major mode -- more newbie questions
Date: Wed, 25 Sep 2002 17:57:52 GMT

In article <mailman.1032974663.4187.help-gnu-emacs@gnu.org>,
Robert P. J. Day <rpjday@mindspring.com> 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" <modename>
>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.


reply via email to

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