help: revamped via read-only bindings

This commit is contained in:
condy 2020-11-14 18:55:52 +08:00 committed by Pierre Neidhardt
parent 3eada62f93
commit 718962ed31
1 changed files with 2 additions and 7 deletions

View File

@ -36,7 +36,7 @@
(defun evil-collection-help-setup ()
"Set up `evil' bindings for `help'."
(evil-set-initial-state 'help-mode 'normal)
(evil-collection-inhibit-insert-state 'help-mode-map)
(evil-collection-set-readonly-bindings 'help-mode-map)
(evil-collection-define-key 'normal 'help-mode-map
;; motion
(kbd "SPC") 'scroll-up-command
@ -68,12 +68,7 @@
"gr" 'revert-buffer
"<" 'help-go-back
">" 'help-go-forward
"r" 'help-follow
;; quit
"q" 'quit-window
"ZQ" 'evil-quit
"ZZ" 'quit-window))
"r" 'help-follow))
(provide 'evil-collection-help)
;;; evil-collection-help.el ends here