Von Peter Weiss (mailto:pewe@ifconnection.de)
HTML unter SGML die Zeichen-Entitäten beizubringen geht mit C-c8 (siehe Menu-Eintrag). Helfen tut dann noch:
(defun html-delete-backward-char (arg) ''html version of delete-backward-char, it deletes german characters as whole'' (interactive ''p'') (save-excursion (while (> arg 0) (if (re-search-backward ''&[aouAOU]uml;'' (- (point) 6) t) (delete-char 6) (if (re-search-backward ''ß'' (- (point) 7) t) (delete-char 7) (delete-backward-char 1))) (setq arg (1- arg))))) (defun own-html-settings () (local-set-key ''\C-?'' 'html-delete-backward-char)) (add-hook 'html-mode-hook 'own-html-settings)