From 47bce8856d93d0c7a3f832257d09975c06a53432 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 6 Jun 2021 01:19:49 -0400 Subject: [PATCH] Fix gr in compilation buffers (for evil users) --- modules/editor/evil/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/editor/evil/config.el b/modules/editor/evil/config.el index 33c0f37d345..9b9b040f3de 100644 --- a/modules/editor/evil/config.el +++ b/modules/editor/evil/config.el @@ -493,6 +493,9 @@ directives. By default, this only recognizes C directives.") :v "gR" #'+eval:replace-region ;; Restore these keybinds, since the blacklisted/overwritten gr/gR will ;; undo them: + (:after compile + :map (compilation-mode-map compilation-minor-mode-map) + :n "gr" #'recompile) (:after dired :map dired-mode-map :n "gr" #'revert-buffer)