unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@mindspring.com>
Subject: selecting a major mode -- more newbie questions
Date: Wed, 25 Sep 2002 13:25:44 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0209251321260.24584-100000@dell> (raw)


  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:

  (add-to-list 'auto-mode-alist '("\\.xml\\'" . xml-mode))

3) adding a directive in the first non-blank like, as in

  <?xml version='1.0' ?> <!-- -*- xml -*- -->

  (or whatever the comment structure is for that type of data)

4) adding (within comments at the bottom of the file):

  <!-- Local variables: -->
  <!-- mode: xml -->

 
does that just about do it?  have i missed anything?  thanks for 
your patience; i'm making progress.

rday

             reply	other threads:[~2002-09-25 17:25 UTC|newest]

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

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=Pine.LNX.4.44.0209251321260.24584-100000@dell \
    --to=rpjday@mindspring.com \
    /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).