1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

* lisp/ehelp.el (electric-help-mode): Fix major-mode setting.

Fixes: debbugs:10917
This commit is contained in:
Glenn Morris 2012-10-06 16:16:40 -07:00
parent 5b9c45a6d1
commit addc11ed80
2 changed files with 4 additions and 1 deletions

View file

@ -102,7 +102,7 @@
(setq buffer-read-only t)
(setq electric-help-orig-major-mode major-mode)
(setq mode-name "Help")
(setq major-mode 'help)
(setq major-mode 'help-mode)
(setq mode-line-buffer-identification '(" Help: %b"))
(use-local-map electric-help-map)
(add-hook 'mouse-leave-buffer-hook 'electric-help-retain)