replace: Bind q to quit-window when not editing

q is bound by default to dismiss the window, which is useful when
occur is being used only to navigate occurrences and not edit them.
This commit is contained in:
Aaron L. Zeng 2024-04-14 18:24:08 -04:00
parent ef8c35d332
commit 93bb658d2f
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@
(kbd "C-k") 'previous-error-no-select
"r" 'occur-rename-buffer
"c" 'clone-buffer
"q" 'quit-window
(kbd "C-c C-f") 'next-error-follow-minor-mode)
(evil-collection-define-key 'normal 'occur-edit-mode-map