all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* selecting a major mode -- more newbie questions
@ 2002-09-25 17:25 Robert P. J. Day
  0 siblings, 0 replies; 2+ messages in thread
From: Robert P. J. Day @ 2002-09-25 17:25 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-25 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1032974663.4187.help-gnu-emacs@gnu.org>
2002-09-25 17:57 ` selecting a major mode -- more newbie questions Barry Margolin
2002-09-25 17:25 Robert P. J. Day

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.