From 952922a0a9e1d1a000dc64b5ecba6bd55de9169d Mon Sep 17 00:00:00 2001 From: sterni Date: Mon, 9 May 2022 15:43:40 +0200 Subject: feat(sterni/emacs): use evil C-w bindings, but with arrow keys hjkl are a huge pain to use with neo layout. Change-Id: Ic3969c00aa920c4cfea25f5ea16bf38b6bbd5e07 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5541 Reviewed-by: sterni Autosubmit: sterni Tested-by: BuildkiteCI --- users/sterni/emacs/init.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'users') diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el index ac235d2d2f20..e04ed724bfdb 100644 --- a/users/sterni/emacs/init.el +++ b/users/sterni/emacs/init.el @@ -146,12 +146,11 @@ (evil-define-key 'normal 'global (kbd "bk") 'kill-buffer) (evil-define-key 'normal 'global (kbd "bb") 'switch-to-buffer) (evil-define-key 'normal 'global (kbd "bl") 'list-buffers) - ;; window management - (evil-define-key 'normal 'global (kbd "wk") 'delete-window) - (evil-define-key 'normal 'global (kbd "wo") 'delete-other-window) - (evil-define-key 'normal 'global (kbd "wh") 'split-window-below) - (evil-define-key 'normal 'global (kbd "wv") 'split-window-right) - (evil-define-key 'normal 'global (kbd "ww") 'other-window) + ;; window management: C-w hjkl is annoying in neo + (define-key evil-window-map (kbd "") 'evil-window-left) + (define-key evil-window-map (kbd "") 'evil-window-right) + (define-key evil-window-map (kbd "") 'evil-window-up) + (define-key evil-window-map (kbd "") 'evil-window-down) ;; emacs (evil-define-key 'visual 'global (kbd "ee") 'eval-region) (evil-define-key 'normal 'global (kbd "ee") 'eval-last-sexp) -- cgit 1.4.1