Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 556 Bytes
;;
;; my-xml.el
;;
;; Everything having to do with XML editing.
;; Uses nxml from http://www.thaiopensource.com/nxml-mode/
;;
;; $Id$
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; From http://www.emacswiki.org/cgi-bin/wiki/NxmlMode
(add-to-list 'auto-mode-alist
(cons (concat "\\." (regexp-opt '("xml" "xsd" "sch" "rng" "xslt" "svg" "rss") t) "\\'")
'nxml-mode))
(unify-8859-on-decoding-mode)
(setq magic-mode-alist
(cons '("<__?xml " . nxml-mode)
magic-mode-alist))
(fset 'xml-mode 'nxml-mode)