1 |
Hi all, |
2 |
I emerged nxml to edit xml files with emacs; it works great, but when I |
3 |
open an xml file it is sgml xml-mode, I have to switch to nxml by hand; |
4 |
this seems to be new since some time ago nxml was the default mode. |
5 |
In the site-gentoo.el file which is generated every time a packet from |
6 |
app-emacs is installed, I have the following: |
7 |
|
8 |
;;; psgml site-lisp configuration |
9 |
|
10 |
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t) |
11 |
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t) |
12 |
|
13 |
(setq sgml-catalog-files '("CATALOG" "/etc/sgml/catalog")) |
14 |
|
15 |
and later: |
16 |
|
17 |
;;; nxml site-lisp configuration |
18 |
|
19 |
(add-to-list 'load-path "/usr/share/emacs/site-lisp/nxml-mode") |
20 |
(load "/usr/share/emacs/site-lisp/nxml-mode/rng-auto.el") |
21 |
|
22 |
(setq auto-mode-alist |
23 |
(cons '("\\.\\(xml\\|xsl\\|xsd\\|rng\\|xhtml\\)\\'" . nxml-mode) |
24 |
auto-mode-alist)) |
25 |
|
26 |
These instructions seem contradictory, how should I eliminate the first |
27 |
instruction? |
28 |
tia |
29 |
-- |
30 |
Jean Magnan de Bornier | Cours Victor Hugo |
31 |
e-mots: jean at bornier.net | 13980 Alleins France |
32 |
T 08 70 39 34 03 | P 06 09 17 35 87 |
33 |
|
34 |
|
35 |
-- |
36 |
gentoo-user@g.o mailing list |