From 93bb658d2f8e93c00a413889301d26d77bf350f6 Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Sun, 14 Apr 2024 18:24:08 -0400 Subject: [PATCH] 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. --- modes/replace/evil-collection-replace.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modes/replace/evil-collection-replace.el b/modes/replace/evil-collection-replace.el index 5dc91e4..0b196be 100644 --- a/modes/replace/evil-collection-replace.el +++ b/modes/replace/evil-collection-replace.el @@ -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