Update bindings for switching between buffers
This commit is contained in:
parent
989b1e40aa
commit
e42c176e58
2 changed files with 7 additions and 3 deletions
4
01mac.el
4
01mac.el
|
|
@ -30,8 +30,8 @@
|
||||||
(global-set-key (kbd "C-c <down>") 'windmove-down)
|
(global-set-key (kbd "C-c <down>") 'windmove-down)
|
||||||
|
|
||||||
;; Switch to previous and next buffer
|
;; Switch to previous and next buffer
|
||||||
(global-set-key (kbd "C-c w <left>") 'previous-buffer)
|
(global-set-key (kbd "C-c s <left>") 'previous-buffer)
|
||||||
(global-set-key (kbd "C-c w <right>") 'next-buffer)
|
(global-set-key (kbd "C-c s <right>") 'next-buffer)
|
||||||
|
|
||||||
;; Kill current buffer and window
|
;; Kill current buffer and window
|
||||||
(global-set-key (kbd "C-c q") 'kill-buffer-and-window)
|
(global-set-key (kbd "C-c q") 'kill-buffer-and-window)
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,8 @@ _k_: kill buffer and window _<left>_: Move left
|
||||||
_h_: split horizontally _<right>_: Move right
|
_h_: split horizontally _<right>_: Move right
|
||||||
_v_: split vertically _<up>_: Move up
|
_v_: split vertically _<up>_: Move up
|
||||||
^^ _<down>_: Move down
|
^^ _<down>_: Move down
|
||||||
|
^^ _p_: Previous buffer
|
||||||
|
^^ _n_: Next buffer
|
||||||
"
|
"
|
||||||
("q" nil "cancel" :color pink)
|
("q" nil "cancel" :color pink)
|
||||||
|
|
||||||
|
|
@ -67,6 +69,8 @@ _v_: split vertically _<up>_: Move up
|
||||||
("<left>" windmove-left)
|
("<left>" windmove-left)
|
||||||
("<right>" windmove-right)
|
("<right>" windmove-right)
|
||||||
("<up>" windmove-up)
|
("<up>" windmove-up)
|
||||||
("<down>" windmove-down))
|
("<down>" windmove-down)
|
||||||
|
("p" previous-buffer)
|
||||||
|
("n" next-buffer))
|
||||||
|
|
||||||
(global-set-key (kbd "C-c w") 'hydra-window-actions/body)
|
(global-set-key (kbd "C-c w") 'hydra-window-actions/body)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue