From ac865c5d2479283cbd9cea27e66aab558561735c Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Sun, 10 Feb 2019 11:54:04 -0500 Subject: [PATCH] Add evil window binds --- lain/.emacs.d/sandbox.org | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/lain/.emacs.d/sandbox.org b/lain/.emacs.d/sandbox.org index aeb35d9..ec8c40f 100644 --- a/lain/.emacs.d/sandbox.org +++ b/lain/.emacs.d/sandbox.org @@ -153,17 +153,31 @@ Also set up a leader key and prefixes, like =\= in Vim. (setq evil-want-integration t) (setq evil-want-keybinding nil) - (defun foltz-window-split () + (defun jf-window-split () (interactive) (evil-window-split) (evil-window-down 1)) - (defun foltz-window-vsplit () + (defun jf-window-vsplit () (interactive) (evil-window-vsplit) (evil-window-right 1)) :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 ** Evil Collection [[https://github.com/emacs-evil/evil-collection][Evil Collection]] adds Evil bindings for all the parts of Emacs that Evil