+prompt for buffer on window split advice
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user