Jump to newly created windows
Since my fingers were good with splitting the window and jumping to the new window, I figured a little advice would make Emacs behave as I would have expected.
This commit is contained in:
parent
9f28c9a51a
commit
2dcac6e761
1 changed files with 10 additions and 0 deletions
|
@ -538,6 +538,16 @@ To jump to a window even quicker, use the [[https://github.com/deb0ch/emacs-winu
|
||||||
:config
|
:config
|
||||||
(winum-mode +1))
|
(winum-mode +1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
And when creating new windows, why isn't the new window selected?
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defun jump-to-new-window (&rest _arg)
|
||||||
|
"Advice function to jump to newly spawned window."
|
||||||
|
(other-window 1))
|
||||||
|
|
||||||
|
(dolist (command '(split-window-below split-window-right
|
||||||
|
evil-window-split evil-window-vsplit))
|
||||||
|
(advice-add command :after #'jump-to-new-window))
|
||||||
|
#+END_SRC
|
||||||
This is nice since the window numbers are always present on a Doom modeline, however, they order the window numbers /differently/ than =ace-window=. Let's see which I end up liking better.
|
This is nice since the window numbers are always present on a Doom modeline, however, they order the window numbers /differently/ than =ace-window=. Let's see which I end up liking better.
|
||||||
|
|
||||||
The ~0~ key/window should be always associated with a project-specific tree window:
|
The ~0~ key/window should be always associated with a project-specific tree window:
|
||||||
|
|
Loading…
Reference in a new issue