From c040729692caafd2c225462614d80d04025807c1 Mon Sep 17 00:00:00 2001 From: condy Date: Sat, 14 Nov 2020 20:10:44 +0800 Subject: helpful: revamped via read-only bindings --- modes/helpful/evil-collection-helpful.el | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modes/helpful/evil-collection-helpful.el b/modes/helpful/evil-collection-helpful.el index e55b1a3..6e5303a 100644 --- a/modes/helpful/evil-collection-helpful.el +++ b/modes/helpful/evil-collection-helpful.el @@ -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 "") '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 -- cgit v1.0