unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@genuity.net>
Subject: Re: selecting a major mode -- more newbie questions
Date: Wed, 25 Sep 2002 17:57:52 GMT	[thread overview]
Message-ID: <AOmk9.30$7B3.2720@paloalto-snr1.gtei.net> (raw)
In-Reply-To: mailman.1032974663.4187.help-gnu-emacs@gnu.org

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	other threads:[~2002-09-25 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1032974663.4187.help-gnu-emacs@gnu.org>
2002-09-25 17:57 ` Barry Margolin [this message]
2002-09-25 17:25 selecting a major mode -- more newbie questions Robert P. J. Day

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AOmk9.30$7B3.2720@paloalto-snr1.gtei.net' \
    --to=barmar@genuity.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).