From ce57eef471bbd0ea89e32e7e13fa5a63fbfa6378 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 31 Mar 2020 14:38:56 -0400 Subject: [PATCH] Stop recentering/preserving window pos on evil searches It needs a lot of work to not be so jarring, but I don't have the time to perfect it, so I'll disable it for now. --- modules/editor/evil/config.el | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/editor/evil/config.el b/modules/editor/evil/config.el index 105f7c875..260967128 100644 --- a/modules/editor/evil/config.el +++ b/modules/editor/evil/config.el @@ -165,17 +165,6 @@ directives. By default, this only recognizes C directives.") (advice-add #'evil-open-above :around #'+evil--insert-newline-above-and-respect-comments-a) (advice-add #'evil-open-below :around #'+evil--insert-newline-below-and-respect-comments-a) - ;; Recenter screen after most searches - (dolist (fn '(evil-visualstar/begin-search-forward - evil-visualstar/begin-search-backward - evil-ex-search-word-forward - evil-ex-search-word-backward - evil-ex-search-next - evil-ex-search-previous - evil-ex-search-forward - evil-ex-search-backward)) - (advice-add fn :around #'doom-preserve-window-position-a)) - ;; --- custom interactive codes ----------- ;; These arg types will highlight matches in the current buffer (evil-ex-define-argument-type regexp-match