Re: Disabling nxml-mode
Jason Rumney <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
Peter Flynn <[email protected]> writes: > 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. > How do I disable Emacs' new behaviour? Replace the autoload line in your .emacs with: (require 'nxml-mode) (require 'psgml) This will ensure that psgml overrides nxml's definition of xml-mode. If you leave those files to auto load, then it is always possible that nxml loads later, overriding psgml's xml-mode definition, or nxml loads first, and psgml never gets loaded because xml-mode is already defined. ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/emacs-nxml-mode/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/emacs-nxml-mode/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/