Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unbinding nxml-mode

6 views
Skip to first unread message

Peter Flynn

unread,
May 21, 2012, 6:12:55 AM5/21/12
to
The version of Emacs (23.3.1) shipped with Ubuntu 12.04 prematurely
binds xml-mode to nxml-mode, so all my .emacs settings for xml-mode
are ignored (psgml, xxml, etc). I don't know enough emacs-lisp to know
where this has been done, or how to undo it. How can I make Emacs go
back to honoring my .emacs file and stop it invoking nxml-mode
(permanently)?

Andreas Röhler

unread,
May 21, 2012, 12:30:56 PM5/21/12
to help-gnu-emacs@gnu.org List
AFAIU the list holding the values is called auto-mode-alist

constructed as pairs of suffix-and-mode-to-invoke

look into, which suffixes trigger nxml-mode

to insert for every suffix at stake the new one write into your init:

(push '("\\.MY_ENDING$" . xml-mode ) auto-mode-alist)

maybe it's needed still to remove the old entries.



HTH,

Andreas






Jason Rumney

unread,
May 22, 2012, 4:58:51 AM5/22/12
to
xml-mode has always been an alias. In earlier versions, it was an alias for sgml-mode. In current versions, it is an alias for nxml-mode.

If you were previously overriding xml-mode to point to psgml or xxml, then the same should work for nxml. Without seeing exactly what your .emacs is doing, it is difficult to tell what is causing you problems.

Mihamina Rakotomandimby

unread,
May 22, 2012, 5:41:40 AM5/22/12
to help-gn...@gnu.org
On 05/21/2012 01:12 PM, Peter Flynn wrote:
> How can I make Emacs go
> back to honoring my .emacs file and stop it invoking nxml-mode
> (permanently)?

I dont make an advanced use of the *ml-modes, but I manually
M-x sgml-mode each time I open an XML file...


--
RMA.

0 new messages