diff options
author | Case Duckworth | 2021-04-02 14:51:06 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-02 14:51:06 -0500 |
commit | afe7ff276b0406e4dccb59e94eb7748b3399cd3f (patch) | |
tree | 23bb1a8ba8c8dcb6bdda7a9744bea9beaad42364 | |
parent | Require spelling program for spelling to work (diff) | |
download | emacs-afe7ff276b0406e4dccb59e94eb7748b3399cd3f.tar.gz emacs-afe7ff276b0406e4dccb59e94eb7748b3399cd3f.zip |
Remove split-window-* advice
It messed up too much.
-rw-r--r-- | init.el | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/init.el b/init.el index 841b105..85647e5 100644 --- a/init.el +++ b/init.el | |||
@@ -189,13 +189,6 @@ | |||
189 | ;;;; Windows | 189 | ;;;; Windows |
190 | (winner-mode +1) | 190 | (winner-mode +1) |
191 | 191 | ||
192 | ;; Advise window-splitting to select a buffer afterword | ||
193 | (dolist (func '(split-window-below | ||
194 | split-window-right | ||
195 | split-window-vertically | ||
196 | split-window-horizontally)) | ||
197 | (advice-add func :after #'switch-to-buffer)) | ||
198 | |||
199 | ;;;; Minibuffer | 192 | ;;;; Minibuffer |
200 | (setc minibuffer-prompt-properties | 193 | (setc minibuffer-prompt-properties |
201 | '(read-only t cursor-intangible t face minibuffer-prompt) | 194 | '(read-only t cursor-intangible t face minibuffer-prompt) |
@@ -598,15 +591,7 @@ if ripgrep is installed, otherwise `consult-grep'." | |||
598 | xref-show-definitions-function #'consult-xref) | 591 | xref-show-definitions-function #'consult-xref) |
599 | 592 | ||
600 | ;; Projects | 593 | ;; Projects |
601 | (:option consult-project-root-function #'vc-root-dir) | 594 | (:option consult-project-root-function #'vc-root-dir)) |
602 | |||
603 | ;; Advise `split-window-'* functions | ||
604 | (dolist (func '(split-window-below | ||
605 | split-window-right | ||
606 | split-window-vertically | ||
607 | split-window-horizontally)) | ||
608 | (advice-remove func #'switch-to-buffer) | ||
609 | (advice-add func :after #'consult-buffer))) | ||
610 | 595 | ||
611 | ;;;;; Marginalia | 596 | ;;;;; Marginalia |
612 | (setup (:straight marginalia) | 597 | (setup (:straight marginalia) |