[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default for editing XML files

From: Stefan Monnier
Subject: Re: Default for editing XML files
Date: Wed, 23 Sep 2009 16:43:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> I agree, it would be better to configure sgml-mode/nxml-mode
> for all calls of xml-mode in one place.  Maybe with the help
> of a new defcustom like:

> (defcustom xml-mode 'nxml-mode
>   "Define xml-mode."
>   :type '(choice (const nxml-mode)
>                (const sgml-mode)))

> (defun xml-mode ()
>   (interactive)
>   (funcall xml-mode))

We already had xml-mode as an alias for sgml-mode, AFAICT.
I see no need to introduce such additional customization: we should just
change the alias to point to nxml-mode.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]