From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Disabling nxml-mode
Date: Tue, 10 May 2011 04:23:01 -0700 (PDT) [thread overview]
Message-ID: <dba9e0e2-dcd0-4ef1-a36c-a8818b2a114d@q12g2000prb.googlegroups.com> (raw)
In-Reply-To: 92m0bdFgm5U1@mid.individual.net
the reason it nxml-mode is loaded when u call xml-mode is probably
because there is a alias.
you can probably set it back by:
(defalias 'xml-mode 'sgml-xml-mode)
Peter wrote:
> (setq auto-mode-alist (cons '("\\.[XxRrMmDdTt][TtMmDdSsNnEe]
[PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" . xml-mode) auto-mode-alist))
that seems to be pretty bad.
you probably want to use add-to-list instead of setq.
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
also, the file suffix
"\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$"
seems quite wild. What is it?
nxml-mode is a new mode for xml, written by the xml expert James
Clark, who is also the original author of sgml-mode (html-mode and xml-
mode are parts of sgml-mode). nxml-mode features on-the-fly xml
validation. It's 10k lines of elisp.
the following might provide helpful info:
〈How to Install Emacs Packages〉
http://xahlee.org/emacs/emacs_installing_packages.html
〈New Features in Emacs 23〉
http://xahlee.org/emacs/emacs23_features.html
Xah
On May 7, 3:45 pm, Peter Flynn <pe...@silmaril.ie> wrote:
> I just upgraded a machine to Ubuntu Natty, which installed Emacs 23.2,
> which appears to open XML files in nxml-mode by default. My .emacs file says
>
> > (autoload 'xml-mode "psgml" "Major mode to edit XML files." t )
> > (setq auto-mode-alist (cons '("\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" . xml-mode) auto-mode-alist))
>
> which has been working fine for years. It looks as if Emacs 23.2 defines
> xml-mode to point to nxml-mode, and this is somehow superseding my .emacs.
>
> Unfortunately I still need to use psgml's xml-mode for all my XML stuff.
> Does anyone know how I disable Emacs' new behaviour?
>
> ///Peter
next prev parent reply other threads:[~2011-05-10 11:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-07 22:45 Disabling nxml-mode Peter Flynn
2011-05-08 19:24 ` Luuk
2011-05-08 21:45 ` Joe Kesselman
2011-05-08 21:46 ` Joe Kesselman
2011-05-08 21:46 ` Joe Kesselman
2011-05-09 18:26 ` Luuk
2011-05-09 20:12 ` William F Hammond
2011-05-10 11:23 ` Xah Lee [this message]
2011-05-10 17:15 ` B. T. Raven
2011-05-10 19:16 ` Xah Lee
2011-05-11 2:03 ` B. T. Raven
2011-05-11 4:05 ` rusi
2011-05-11 20:38 ` xmodmap ( was:: Disabling nxml-mode) B. T. Raven
2011-05-11 22:35 ` xmodmap ( Tim X
2011-05-12 2:20 ` B. T. Raven
2011-05-11 4:17 ` Disabling nxml-mode Xah Lee
2011-05-10 23:02 ` Joe Kesselman
2011-05-10 23:11 ` John Bokma
2011-05-11 20:24 ` Peter Flynn
2011-05-10 20:42 ` Peter Flynn
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dba9e0e2-dcd0-4ef1-a36c-a8818b2a114d@q12g2000prb.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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.