Use sgml-mode for emacs

Starting with version 23.2, the default emacs mode for xml changed.

The tal .xml are not real xml, so add the following to your ~/.emacs

(add-to-list 'magic-mode-alist 
             '("<!-- \\(AUTHOR\\|TITLE\\)=" . sgml-mode))

(add-to-list 'auto-mode-alist '("\\.xml\\'" . sgml-mode))

Hilight a region and then hit C-c C-t will insert the opening and closing tag

Refill the text

If you downloaded a text with lines broken at 70 or so characters, you should refill it. So do the following

You're done

EditingTips (last edited 2011-09-15 07:04:53 by marco)