Make cursor keys work
The goal is to have the cursor keys work in all places where hjkl work as directional keys. This is only a start.
This commit is contained in:
parent
537ee89b76
commit
80595884ba
2 changed files with 21 additions and 0 deletions
|
@ -301,13 +301,21 @@ Ensure that helm is required before calling FUNC."
|
||||||
"wc" 'delete-window
|
"wc" 'delete-window
|
||||||
"wd" 'spacemacs/toggle-current-window-dedication
|
"wd" 'spacemacs/toggle-current-window-dedication
|
||||||
"wH" 'evil-window-move-far-left
|
"wH" 'evil-window-move-far-left
|
||||||
|
"w <S-left>" 'evil-window-move-far-left
|
||||||
"wh" 'evil-window-left
|
"wh" 'evil-window-left
|
||||||
|
"w <left>" 'evil-window-left
|
||||||
"wJ" 'evil-window-move-very-bottom
|
"wJ" 'evil-window-move-very-bottom
|
||||||
|
"w <S-down>" 'evil-window-move-very-bottom
|
||||||
"wj" 'evil-window-down
|
"wj" 'evil-window-down
|
||||||
|
"w <down>" 'evil-window-down
|
||||||
"wK" 'evil-window-move-very-top
|
"wK" 'evil-window-move-very-top
|
||||||
|
"w <S-up>" 'evil-window-move-very-top
|
||||||
"wk" 'evil-window-up
|
"wk" 'evil-window-up
|
||||||
|
"w <up>" 'evil-window-up
|
||||||
"wL" 'evil-window-move-far-right
|
"wL" 'evil-window-move-far-right
|
||||||
|
"w <S-right>" 'evil-window-move-far-right
|
||||||
"wl" 'evil-window-right
|
"wl" 'evil-window-right
|
||||||
|
"w <right>" 'evil-window-right
|
||||||
"wm" 'spacemacs/toggle-maximize-buffer
|
"wm" 'spacemacs/toggle-maximize-buffer
|
||||||
"wM" 'spacemacs/toggle-maximize-centered-buffer
|
"wM" 'spacemacs/toggle-maximize-centered-buffer
|
||||||
"wo" 'other-frame
|
"wo" 'other-frame
|
||||||
|
@ -470,13 +478,21 @@ Ensure that helm is required before calling FUNC."
|
||||||
("C" delete-other-windows :doc (spacemacs//window-manipulation-layout-doc))
|
("C" delete-other-windows :doc (spacemacs//window-manipulation-layout-doc))
|
||||||
("g" spacemacs/toggle-golden-ratio :doc (spacemacs//window-manipulation-gratio-doc))
|
("g" spacemacs/toggle-golden-ratio :doc (spacemacs//window-manipulation-gratio-doc))
|
||||||
("h" evil-window-left :doc (spacemacs//window-manipulation-move-doc))
|
("h" evil-window-left :doc (spacemacs//window-manipulation-move-doc))
|
||||||
|
("<left>" evil-window-left :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("j" evil-window-down :doc (spacemacs//window-manipulation-move-doc))
|
("j" evil-window-down :doc (spacemacs//window-manipulation-move-doc))
|
||||||
|
("<down>" evil-window-down :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("k" evil-window-up :doc (spacemacs//window-manipulation-move-doc))
|
("k" evil-window-up :doc (spacemacs//window-manipulation-move-doc))
|
||||||
|
("<up>" evil-window-up :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("l" evil-window-right :doc (spacemacs//window-manipulation-move-doc))
|
("l" evil-window-right :doc (spacemacs//window-manipulation-move-doc))
|
||||||
|
("<right>" evil-window-right :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("H" evil-window-move-far-left :doc (spacemacs//window-manipulation-move-doc))
|
("H" evil-window-move-far-left :doc (spacemacs//window-manipulation-move-doc))
|
||||||
|
("<S-left>" evil-window-move-far-left :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("J" evil-window-move-very-bottom :doc (spacemacs//window-manipulation-move-doc))
|
("J" evil-window-move-very-bottom :doc (spacemacs//window-manipulation-move-doc))
|
||||||
|
("<S-down>" evil-window-move-very-bottom :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("K" evil-window-move-very-top :doc (spacemacs//window-manipulation-move-doc))
|
("K" evil-window-move-very-top :doc (spacemacs//window-manipulation-move-doc))
|
||||||
|
("<S-up>" evil-window-move-very-top :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("L" evil-window-move-far-right :doc (spacemacs//window-manipulation-move-doc))
|
("L" evil-window-move-far-right :doc (spacemacs//window-manipulation-move-doc))
|
||||||
|
("<S-right>" evil-window-move-far-right :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("o" other-frame :doc (spacemacs//window-manipulation-move-doc))
|
("o" other-frame :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("R" spacemacs/rotate-windows :doc (spacemacs//window-manipulation-move-doc))
|
("R" spacemacs/rotate-windows :doc (spacemacs//window-manipulation-move-doc))
|
||||||
("s" split-window-below :doc (spacemacs//window-manipulation-split-doc))
|
("s" split-window-below :doc (spacemacs//window-manipulation-split-doc))
|
||||||
|
|
|
@ -712,6 +712,11 @@
|
||||||
;; toggle maximize buffer
|
;; toggle maximize buffer
|
||||||
(define-key evil-window-map (kbd "o") 'spacemacs/toggle-maximize-buffer)
|
(define-key evil-window-map (kbd "o") 'spacemacs/toggle-maximize-buffer)
|
||||||
(define-key evil-window-map (kbd "C-o") 'spacemacs/toggle-maximize-buffer)
|
(define-key evil-window-map (kbd "C-o") 'spacemacs/toggle-maximize-buffer)
|
||||||
|
;; make cursor keys work
|
||||||
|
(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)
|
||||||
|
|
||||||
(evil-leader/set-key "re" 'evil-show-registers)
|
(evil-leader/set-key "re" 'evil-show-registers)
|
||||||
|
|
||||||
|
|
Reference in a new issue