From afe7ff276b0406e4dccb59e94eb7748b3399cd3f Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 2 Apr 2021 14:51:06 -0500 Subject: Remove split-window-* advice It messed up too much. --- init.el | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 841b105..85647e5 100644 --- a/init.el +++ b/init.el @@ -189,13 +189,6 @@ ;;;; Windows (winner-mode +1) -;; Advise window-splitting to select a buffer afterword -(dolist (func '(split-window-below - split-window-right - split-window-vertically - split-window-horizontally)) - (advice-add func :after #'switch-to-buffer)) - ;;;; Minibuffer (setc minibuffer-prompt-properties '(read-only t cursor-intangible t face minibuffer-prompt) @@ -598,15 +591,7 @@ if ripgrep is installed, otherwise `consult-grep'." xref-show-definitions-function #'consult-xref) ;; Projects - (:option consult-project-root-function #'vc-root-dir) - - ;; Advise `split-window-'* functions - (dolist (func '(split-window-below - split-window-right - split-window-vertically - split-window-horizontally)) - (advice-remove func #'switch-to-buffer) - (advice-add func :after #'consult-buffer))) + (:option consult-project-root-function #'vc-root-dir)) ;;;;; Marginalia (setup (:straight marginalia) -- cgit 1.4.1-21-gabe81