Loading ...
Sorry, an error occurred while loading the content.
 

RE: [emacs-nxml-mode] problem when using win32

Expand Messages
  • Wheeler, Dr M.D.
    Thanks for your help I ll look over that tommorrow Martyn ________________________________ From: emacs-nxml-mode@yahoogroups.com on behalf of Lennart Borgman
    Message 1 of 3 , Jun 21, 2005
      Thanks for your help
      I'll look over that tommorrow

      Martyn

      ________________________________

      From: emacs-nxml-mode@yahoogroups.com on behalf of Lennart Borgman
      Sent: Tue 21/06/2005 18:06
      To: emacs-nxml-mode@yahoogroups.com
      Subject: Re: [emacs-nxml-mode] problem when using win32


      Wheeler, Dr M.D. wrote:

      >Dear nxml users,
      >I have just started using nxml-mode to edit my xml files. However, I ahve just installed the Emacs win32 Emacs-22.0.50.1-Cvs050611105802-emacsw32-0.88 version om my win2k pc. All is great but I cannot get emacs to start up in nxml-mode when opening xml files...
      >
      >here is the relevant portion of my .emacs file
      >
      >;; ===== enable html-helper-mode =====
      >(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
      >(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist))
      >(setq auto-mode-alist (cons '("\\.asp$" . html-helper-mode) auto-mode-alist))
      >(setq auto-mode-alist (cons '("\\.phtml$" . html-helper-mode) auto-mode-alist))
      >
      >;; ===== enable nxml-mode =====
      >(load "C:/Program Files/Emacs/emacs/site-lisp/nxml-mode-20041004/rng-auto.el")
      >(setq auto-mode-alist
      > (cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\|tmpl\\)\\'" . nxml-mode)
      > auto-mode-alist))
      >(unify-8859-on-decoding-mode)
      >
      >
      >whenever i o pen an xml file emacs defaults to sgml-mode (this is not the case for tmpl files, so is auto-mode-alist being changed later on????)
      >
      >
      The way the actual mode used is choosen is a bit obscure (or flexible ;-).

      This is the way I believe it works:

      1) magic-mode-alist is searched. If a match there is found and the
      corresponding function is non-nil then this function is called.

      2) Otherwise auto-mode-alist is used.

      but

      3) after this hack-local-variables can be used (see
      http://www.emacswiki.org/cgi-bin/wiki/NxmlMode).


      ________________________________

      Yahoo! Groups Links


      * To visit your group on the web, go to:
      http://groups.yahoo.com/group/emacs-nxml-mode/

      * To unsubscribe from this group, send an email to:
      emacs-nxml-mode-unsubscribe@yahoogroups.com <mailto:emacs-nxml-mode-unsubscribe@yahoogroups.com?subject=Unsubscribe>

      * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .
    Your message has been successfully submitted and would be delivered to recipients shortly.