From 718962ed31ddbde9eb98ec7c5ec53e0b2aae7f06 Mon Sep 17 00:00:00 2001 From: condy Date: Sat, 14 Nov 2020 18:55:52 +0800 Subject: help: revamped via read-only bindings --- modes/help/evil-collection-help.el | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modes/help/evil-collection-help.el b/modes/help/evil-collection-help.el index da6b5d5..d84e17f 100644 --- a/modes/help/evil-collection-help.el +++ b/modes/help/evil-collection-help.el @@ -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 -- cgit v1.0