diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-10 12:31:57 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-10 12:31:57 +0100 |
commit | 95f29614402f3b093500b4e70366b20c96732cd4 (patch) | |
tree | 9c7b089d5d65303a3e697bed7bba34a142be55cd /Emacs | |
parent | 7bfcdf013cd13712e11424715fc9eb50fb15a60c (diff) | |
download | dotfiles-95f29614402f3b093500b4e70366b20c96732cd4.tar.gz dotfiles-95f29614402f3b093500b4e70366b20c96732cd4.tar.bz2 dotfiles-95f29614402f3b093500b4e70366b20c96732cd4.zip |
+prompt for buffer on window split advice
Diffstat (limited to 'Emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 4a8d30f..16ec39d 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -199,7 +199,9 @@ leader-map at "SPC". #+BEGIN_SRC emacs-lisp (use-package evil :init - (setq evil-want-keybinding nil) + (setq evil-want-keybinding nil + evil-split-window-below t + evil-vsplit-window-right t) :config (evil-mode +1) (evil-define-key 'normal global-map @@ -378,6 +380,15 @@ package comes in. :general (leader "st" #'counsel-etags-find-tag)) #+END_SRC +* Prompt buffer switch +Essentially add advice to the window split functions so that they run +ivy-switch-buffer once they're finished. +#+BEGIN_SRC emacs-lisp +(with-eval-after-load "ivy" + (with-eval-after-load "evil" + (advice-add #'evil-window-vsplit :after #'ivy-switch-buffer) + (advice-add #'evil-window-split :after #'ivy-switch-buffer))) +#+END_SRC * Avy Setup avy with leader. #+BEGIN_SRC emacs-lisp |