summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/apropos.el10
1 files changed, 2 insertions, 8 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index c184a689bf6..fe441219e99 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -128,16 +128,10 @@ for the regexp; the part that matches gets displayed in this font."
"Current item in or for `apropos-accumulator'.")
;;;###autoload
-(defun apropos-mode ()
+(define-derived-mode apropos-mode fundamental-mode "Apropos"
"Major mode for following hyperlinks in output of apropos commands.
-\\{apropos-mode-map}"
- (interactive)
- (kill-all-local-variables)
- (use-local-map apropos-mode-map)
- (setq major-mode 'apropos-mode
- mode-name "Apropos")
- (run-hooks 'apropos-mode-hook))
+\\{apropos-mode-map}")
;;;###autoload
(defun apropos-variable (regexp &optional do-all)