* [gentoo-user] xml mode for emacs
@ 2005-10-08 20:44 Jean Magnan de Bornier
2005-10-09 0:49 ` [gentoo-user] " Gabriel M. Beddingfield
0 siblings, 1 reply; 4+ messages in thread
From: Jean Magnan de Bornier @ 2005-10-08 20:44 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: xml mode for emacs
2005-10-08 20:44 [gentoo-user] xml mode for emacs Jean Magnan de Bornier
@ 2005-10-09 0:49 ` Gabriel M. Beddingfield
2005-10-09 6:37 ` Jean Magnan de Bornier
0 siblings, 1 reply; 4+ messages in thread
From: Gabriel M. Beddingfield @ 2005-10-09 0:49 UTC (permalink / raw
To: gentoo-user
Jean Magnan de Bornier wrote:
> 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:
What does your ~/.emacs file look like? Does it have:
(load "site-gentoo")
The site-gentoo.el appears to work fine for me on Emacs 22.0.50.1. However,
if you load neither 'site-gentoo' nor the equivalent code in your ~/.emacs
file, then the default for Emacs is SGML mode.
HTH,
Gabriel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: xml mode for emacs
2005-10-09 0:49 ` [gentoo-user] " Gabriel M. Beddingfield
@ 2005-10-09 6:37 ` Jean Magnan de Bornier
2005-10-09 7:05 ` [gentoo-user] Re: xml mode for emacs [SOLVED] Jean Magnan de Bornier
0 siblings, 1 reply; 4+ messages in thread
From: Jean Magnan de Bornier @ 2005-10-09 6:37 UTC (permalink / raw
To: gentoo-user
Le 09 octobre à 02:49:03 "Gabriel M. Beddingfield" <gabriel@teuton.org> écrit notamment:
| Jean Magnan de Bornier wrote:
>
| > 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:
>
| What does your ~/.emacs file look like? Does it have:
>
| (load "site-gentoo")
>
| The site-gentoo.el appears to work fine for me on Emacs 22.0.50.1. However,
| if you load neither 'site-gentoo' nor the equivalent code in your ~/.emacs
| file, then the default for Emacs is SGML mode.
I do have it already in .emacs
Thanks anyway
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: xml mode for emacs [SOLVED]
2005-10-09 6:37 ` Jean Magnan de Bornier
@ 2005-10-09 7:05 ` Jean Magnan de Bornier
0 siblings, 0 replies; 4+ messages in thread
From: Jean Magnan de Bornier @ 2005-10-09 7:05 UTC (permalink / raw
To: gentoo-user
Le 09 octobre à 08:37:36 Jean Magnan de Bornier <jean@bornier.net> écrit notamment:
| Le 09 octobre à 02:49:03 "Gabriel M. Beddingfield" <gabriel@teuton.org> écrit notamment:
>
| | Jean Magnan de Bornier wrote:
| >
| | > 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:
| >
| | What does your ~/.emacs file look like? Does it have:
| >
| | (load "site-gentoo")
| >
| | The site-gentoo.el appears to work fine for me on Emacs 22.0.50.1. However,
| | if you load neither 'site-gentoo' nor the equivalent code in your ~/.emacs
| | file, then the default for Emacs is SGML mode.
>
| I do have it already in .emacs
Looking at the nxml website (I should have done it first!), I see my problem is
known; adding "(fset 'xml-mode 'nxml-mode)" to .emacs solves it.
bye,
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-10-09 7:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-08 20:44 [gentoo-user] xml mode for emacs Jean Magnan de Bornier
2005-10-09 0:49 ` [gentoo-user] " Gabriel M. Beddingfield
2005-10-09 6:37 ` Jean Magnan de Bornier
2005-10-09 7:05 ` [gentoo-user] Re: xml mode for emacs [SOLVED] Jean Magnan de Bornier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox