From: Lute Kamstra <lute@gnu.org> Date: Fri, 10 Jun 2005 12:03:06 +0000 (+0000) Subject: (blackbox-mode): Use run-mode-hooks. X-Git-Tag: emacs-pretest-22.0.90~9108 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09e9987080371fbab84d6fdca5e5c38ef1b590ba;p=emacs.git (blackbox-mode): Use run-mode-hooks. --- diff --git a/lisp/play/blackbox.el b/lisp/play/blackbox.el index 6fad15b8155..02f8cb5eeb0 100644 --- a/lisp/play/blackbox.el +++ b/lisp/play/blackbox.el @@ -117,14 +117,14 @@ The usual mnemonic keys move the cursor around the box. \\<blackbox-mode-map>\\[bb-bol] and \\[bb-eol] move to the beginning and end of line, respectively. \\[bb-romp] -- send in a ray from point, or toggle a ball at point -\\[bb-done] -- end game and get score -" +\\[bb-done] -- end game and get score" (interactive) (kill-all-local-variables) (use-local-map blackbox-mode-map) (setq truncate-lines t) (setq major-mode 'blackbox-mode) - (setq mode-name "Blackbox")) + (setq mode-name "Blackbox") + (run-mode-hooks 'blackbox-mode-hook)) ;;;###autoload (defun blackbox (num)