Hi all,
I emerged nxml to edit xml files with emacs; it works great, but when I
open an xml file it is sgml xml-mode, I have to switch to nxml by hand;
this seems to be new since some time ago nxml was the default mode.
In the site-gentoo.el file which is generated every time a packet from
app-emacs is installed, I have the following:

;;; psgml site-lisp configuration

(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)

(setq sgml-catalog-files '("CATALOG" "/etc/sgml/catalog"))

and later:

;;; nxml site-lisp configuration

(add-to-list 'load-path "/usr/share/emacs/site-lisp/nxml-mode")
(load "/usr/share/emacs/site-lisp/nxml-mode/rng-auto.el")

(setq auto-mode-alist
      (cons '("\\.\\(xml\\|xsl\\|xsd\\|rng\\|xhtml\\)\\'" . nxml-mode)
                auto-mode-alist))

These instructions seem contradictory, how should I eliminate the first
instruction?
tia
-- 
  Jean Magnan de Bornier             |        Cours Victor Hugo
  e-mots: jean at bornier.net        |        13980 Alleins   France
  T 08 70 39 34 03                   |        P 06 09 17 35 87


-- 
gentoo-user@gentoo.org mailing list

Reply via email to