From 0ffb985fb0214b5f59356cdc81dabfd8b59567e5 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Fri, 19 Jul 2024 00:04:07 -0700 Subject: [PATCH] Add C-o based bindings --- thoom-emacs/modules/thoom-tweaks.el | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/thoom-emacs/modules/thoom-tweaks.el b/thoom-emacs/modules/thoom-tweaks.el index bfbafc8..073dafe 100644 --- a/thoom-emacs/modules/thoom-tweaks.el +++ b/thoom-emacs/modules/thoom-tweaks.el @@ -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)