diff options
| author | Lute Kamstra | 2005-06-10 12:03:06 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2005-06-10 12:03:06 +0000 |
| commit | 09e9987080371fbab84d6fdca5e5c38ef1b590ba (patch) | |
| tree | 711cb9681b4fade22f5ad744dfc88a8d31e3915d | |
| parent | 530b0472e7bf440ac24be3758e975764be851b04 (diff) | |
| download | emacs-09e9987080371fbab84d6fdca5e5c38ef1b590ba.tar.gz emacs-09e9987080371fbab84d6fdca5e5c38ef1b590ba.zip | |
(blackbox-mode): Use run-mode-hooks.
| -rw-r--r-- | lisp/play/blackbox.el | 6 |
1 files changed, 3 insertions, 3 deletions
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. | |||
| 117 | \\<blackbox-mode-map>\\[bb-bol] and \\[bb-eol] move to the beginning and end of line, respectively. | 117 | \\<blackbox-mode-map>\\[bb-bol] and \\[bb-eol] move to the beginning and end of line, respectively. |
| 118 | 118 | ||
| 119 | \\[bb-romp] -- send in a ray from point, or toggle a ball at point | 119 | \\[bb-romp] -- send in a ray from point, or toggle a ball at point |
| 120 | \\[bb-done] -- end game and get score | 120 | \\[bb-done] -- end game and get score" |
| 121 | " | ||
| 122 | (interactive) | 121 | (interactive) |
| 123 | (kill-all-local-variables) | 122 | (kill-all-local-variables) |
| 124 | (use-local-map blackbox-mode-map) | 123 | (use-local-map blackbox-mode-map) |
| 125 | (setq truncate-lines t) | 124 | (setq truncate-lines t) |
| 126 | (setq major-mode 'blackbox-mode) | 125 | (setq major-mode 'blackbox-mode) |
| 127 | (setq mode-name "Blackbox")) | 126 | (setq mode-name "Blackbox") |
| 127 | (run-mode-hooks 'blackbox-mode-hook)) | ||
| 128 | 128 | ||
| 129 | ;;;###autoload | 129 | ;;;###autoload |
| 130 | (defun blackbox (num) | 130 | (defun blackbox (num) |