Add window layout rotation to evil window keymap

This commit is contained in:
TEC 2020-06-01 03:25:26 +08:00
parent 0df037dfbb
commit 15b0559139
1 changed files with 8 additions and 0 deletions

View File

@ -211,6 +211,14 @@ Oh, and previews are nice
#+BEGIN_SRC emacs-lisp
(setq +ivy-buffer-preview t)
#+END_SRC
Window rotation is nice, and can be found under =SPC w r= and =SPC w R=.
/Layout/ rotation is also nice though. Let's stash this under =SPC w SPC=, inspired
by Tmux's use of =C-b SPC= to rotate windows.
#+BEGIN_SRC emacs-lisp
(map! :map evil-window-map
"SPC" #'rotate-layout)
#+END_SRC
*** Buffer defaults
I'd much rather have my new buffers in ~org-mode~ than ~fundamental-mode~, hence
#+BEGIN_SRC emacs-lisp