diff options
| author | condy <condy0919@gmail.com> | 2020-11-14 20:10:44 +0800 |
|---|---|---|
| committer | Pierre Neidhardt <mail@ambrevar.xyz> | 2020-11-15 18:53:44 +0100 |
| commit | c040729692caafd2c225462614d80d04025807c1 (patch) | |
| tree | dda119a030701e1c4f2f67bd89d348a864eafdea /modes/helpful | |
| parent | 8f779d1e1e96ed1979e4a88b5ff9c3e7740c2de8 (diff) | |
helpful: revamped via read-only bindings
Diffstat (limited to 'modes/helpful')
| -rw-r--r-- | modes/helpful/evil-collection-helpful.el | 9 |
1 files 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 "<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 |
