diff lisp/psgml/psgml-html.el @ 24:4103f0995bd7 r19-15b95

Import from CVS: tag r19-15b95
author cvs
date Mon, 13 Aug 2007 08:51:03 +0200
parents 0293115a14e9
children e04119814345
line wrap: on
line diff
--- a/lisp/psgml/psgml-html.el	Mon Aug 13 08:50:31 2007 +0200
+++ b/lisp/psgml/psgml-html.el	Mon Aug 13 08:51:03 2007 +0200
@@ -29,6 +29,12 @@
 
 ; Parts were taken from html-helper-mode and from code by Alastair Burt.
 
+; Feb 18 1997, Heiko Muenkel: Added the hook variable html-mode-hook.
+;	With that you can now use the hm--html-minor-mode together
+;	with this mode. For that you've to add the following line
+;	to your ~/.emacs:
+;		(add-hook 'html-mode-hook 'hm--html-minor-mode)
+
 ;;; Code:
 
 (defvar html-auto-sgml-entity-conversion nil
@@ -106,6 +112,9 @@
 If you want to not install some type of tag, override this variable.
 Order is significant: menus go in this order.")
 
+(defvar html-mode-hook nil
+  "*Hook called by `html-mode'.")
+
 ;;}}} end of user variables
 ;;{{{ type based keymap and menu variable and function setup
 
@@ -214,7 +223,8 @@
   ; sigh ...  need to call this now to get things working.
   (sgml-build-custom-menus)
   (add-submenu nil sgml-html-menu "SGML")
-  (delete-menu-item '("SGML")))
+  (delete-menu-item '("SGML"))
+  (run-hooks 'html-mode-hook))
 
 (defun html-helper-add-type-to-alist (type)
   "Add a type specification to the alist.