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 <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
6128f0262e
commit
952922a0a9
1 changed files with 5 additions and 6 deletions
|
@ -146,12 +146,11 @@
|
|||
(evil-define-key 'normal 'global (kbd "<leader>bk") 'kill-buffer)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>bb") 'switch-to-buffer)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>bl") 'list-buffers)
|
||||
;; window management
|
||||
(evil-define-key 'normal 'global (kbd "<leader>wk") 'delete-window)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>wo") 'delete-other-window)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>wh") 'split-window-below)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>wv") 'split-window-right)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>ww") 'other-window)
|
||||
;; window management: C-w hjkl is annoying in neo
|
||||
(define-key evil-window-map (kbd "<left>") 'evil-window-left)
|
||||
(define-key evil-window-map (kbd "<right>") 'evil-window-right)
|
||||
(define-key evil-window-map (kbd "<up>") 'evil-window-up)
|
||||
(define-key evil-window-map (kbd "<down>") 'evil-window-down)
|
||||
;; emacs
|
||||
(evil-define-key 'visual 'global (kbd "<leader>ee") 'eval-region)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>ee") 'eval-last-sexp)
|
||||
|
|
Loading…
Reference in a new issue