Add C-o based bindings
This commit is contained in:
@@ -1,5 +1,36 @@
|
||||
(provide 'thoom-tweaks)
|
||||
|
||||
(use-package emacs
|
||||
:bind (("C-o" . nil)
|
||||
("C-o C-o" . other-window)
|
||||
("C-o o" . other-window)
|
||||
("C-o /" . split-window-right)
|
||||
("C-o -" . split-window-below)
|
||||
("C-o C-k" . delete-window)
|
||||
("C-o 1" . delete-other-windows)
|
||||
("C-o w" . windmove-up)
|
||||
("C-o s" . windmove-down)
|
||||
("C-o a" . windmove-left)
|
||||
("C-o d" . windmove-right)
|
||||
;; TODO shift-wasd for moving
|
||||
;; TODO C-wasd for resizing
|
||||
;; TODO C-/ for undo window state change
|
||||
;; TODO z for zooming
|
||||
;; TODO other-window scrolling
|
||||
("C-o n" . next-buffer)
|
||||
("C-o p" . previous-buffer)
|
||||
:repeat-map windmove-repeat-map
|
||||
("w" . windmove-up)
|
||||
("a" . windmove-left)
|
||||
("s" . windmove-down)
|
||||
("d" . windmove-right)
|
||||
:repeat-map next-buffer-repeat-map
|
||||
("n" . next-buffer)
|
||||
("p" . previous-buffer)))
|
||||
|
||||
(use-package emacs
|
||||
:bind (("C-h C-i" . info-apropos)))
|
||||
|
||||
;; When scrolling by page and hitting top/bottom, move cursor to top/bottom of buffer
|
||||
(setq-default scroll-error-top-bottom t)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user