+prompt for buffer on window split advice
This commit is contained in:
@@ -199,7 +199,9 @@ leader-map at "SPC".
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:init
|
:init
|
||||||
(setq evil-want-keybinding nil)
|
(setq evil-want-keybinding nil
|
||||||
|
evil-split-window-below t
|
||||||
|
evil-vsplit-window-right t)
|
||||||
:config
|
:config
|
||||||
(evil-mode +1)
|
(evil-mode +1)
|
||||||
(evil-define-key 'normal global-map
|
(evil-define-key 'normal global-map
|
||||||
@@ -378,6 +380,15 @@ package comes in.
|
|||||||
:general
|
:general
|
||||||
(leader "st" #'counsel-etags-find-tag))
|
(leader "st" #'counsel-etags-find-tag))
|
||||||
#+END_SRC
|
#+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
|
* Avy
|
||||||
Setup avy with leader.
|
Setup avy with leader.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|||||||
Reference in New Issue
Block a user