helpful: revamped via read-only bindings

This commit is contained in:
condy 2020-11-14 20:10:44 +08:00 committed by Pierre Neidhardt
parent 8f779d1e1e
commit c040729692
1 changed files with 2 additions and 7 deletions

View File

@ -35,7 +35,7 @@
;;;###autoload
(defun evil-collection-helpful-setup ()
"Set up `evil' bindings for `helpful'."
(evil-collection-inhibit-insert-state 'helpful-mode-map)
(evil-collection-set-readonly-bindings 'helpful-mode-map)
(evil-collection-define-key 'normal 'helpful-mode-map
;; motion
(kbd "<tab>") 'forward-button
@ -48,12 +48,7 @@
"gO" 'push-button
"g?" 'describe-mode
"gr" 'helpful-update
;; quit
"q" 'quit-window
"ZQ" 'evil-quit
"ZZ" 'quit-window))
"gr" 'helpful-update))
(provide 'evil-collection-helpful)
;;; evil-collection-helpful.el ends here