Howto setup emacs
Emacs has to be setup to be use UTF-8 as its default decoding and to use nxml mode when writing xml-documents.
Fetching and unpacking nxml-mode
Fetch nxml mode. You end up with a folder called nxml-mode-2xxxxxxx. Move it to the Documents folder.
After this is done, open the file $HOME/.emacs. Add the following lines to that file.
;Make nxml-mode available to emacs (load "~/Documents/nxml-mode-20041004/rng-auto.el") ; Load nxml-mode automatically for files with the following endings (add-to-list 'auto-mode-alist (cons (concat "\\." (regexp-opt '("xml" "xsd" "sch" "rng" "xslt" "svg" "rss") t) "\\'") 'nxml-mode)) ; Make Emacs UTF-8 compatible for both display and editing: (prefer-coding-system 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) ; Turn on syntax colouring in all modes supporting it: (global-font-lock-mode t)
Save and close the file.
Last modified $Date: 2008-11-05 18:52:54 +0100 (ons, 05 nov 2008) $, by $Author: boerre $
by Børre Gaup