1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-24 12:26:05 -05:00

Add evil window binds

This commit is contained in:
Jack Foltz 2019-02-10 11:54:04 -05:00
parent 680ff99579
commit ac865c5d24
No known key found for this signature in database
GPG Key ID: E7B502AB1576E6CD

View File

@ -153,17 +153,31 @@ Also set up a leader key and prefixes, like =\= in Vim.
(setq evil-want-integration t) (setq evil-want-integration t)
(setq evil-want-keybinding nil) (setq evil-want-keybinding nil)
(defun foltz-window-split () (defun jf-window-split ()
(interactive) (interactive)
(evil-window-split) (evil-window-split)
(evil-window-down 1)) (evil-window-down 1))
(defun foltz-window-vsplit () (defun jf-window-vsplit ()
(interactive) (interactive)
(evil-window-vsplit) (evil-window-vsplit)
(evil-window-right 1)) (evil-window-right 1))
:config :config
(evil-mode t)) (evil-mode t)
(jf-windows-def
"-" #'jf-window-split
"=" #'jf-window-vsplit
"b" #'balance-windows
"H" #'evil-window-far-left
"J" #'evil-window-bottom
"K" #'evil-window-top
"L" #'evil-window-far-right
"h" #'evil-window-left
"j" #'evil-window-right
"k" #'evil-window-down
"l" #'evil-window-right
"o" #'other-frame))
#+END_SRC #+END_SRC
** Evil Collection ** Evil Collection
[[https://github.com/emacs-evil/evil-collection][Evil Collection]] adds Evil bindings for all the parts of Emacs that Evil [[https://github.com/emacs-evil/evil-collection][Evil Collection]] adds Evil bindings for all the parts of Emacs that Evil