help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: nxml-mode autoload?


From: Lennart Borgman
Subject: Re: nxml-mode autoload?
Date: Sun, 30 Oct 2005 15:38:35 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Jean Magnan de Bornier wrote:

Arturius mac Aidan <abysmal@waters.loch> wrote :

These entries are in my .emacs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; autoinsert.el
;;http://www.linuxgazette.com/issue39/marsden.html

(setq auto-mode-alist
     (append '(("\\.h$" . c++-mode)
               ("\\.cpp\\'" . c++-mode)
               ("\\.moc\\'" . c++-mode))
             auto-mode-alist))

(add-hook 'find-file-hooks 'auto-insert)
(setq-default auto-insert-query nil)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; www.thaiopensource.com/nxml-mode
;; per the ~/.emacs.d/lisp/nxml-mode-20041004/README
(load "~/.emacs.d/lisp/nxml-mode-20041004/rng-auto.el")
(setq auto-mode-alist
     (append '(("\\.xml\\'" . nxml-mode)
               ("\\.xsl\\'" . nxml-mode)
               ("\\.rng\\'" . nxml-mode)
               ("\\.xhtml\\'" . nxml-mode))
             auto-mode-alist))
;;;;;;;;;;;;;;;;;EOF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


The first auto-mode-alist entries (for c++) work as expected.  the ones for
nxml-mode do not work.  I can, however, start the mode with `M-x
nxml-mode<ret>'. Does anybody know why this is not working?

On emacs-wiki you can find this solution:

(fset 'xml-mode 'nxml-mode)
On the page http://www.emacswiki.org/cgi-bin/wiki/NxmlMode where you can find the solution above you can also find fmode.el which will change the relevant variables for mode selection.




reply via email to

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