Update keybindings

- Add C-x e prefix for eval
- Make C-x ) end-or-run kmacro and add repeat map
This commit is contained in:
2024-09-20 18:36:20 -07:00
parent 7de477a211
commit 035e09accc

View File

@@ -25,6 +25,15 @@
(use-package emacs
:bind (("C-c o b" . reveal-in-file-browser)
("C-h C-i" . info-apropos)
("C-x )" . kmacro-end-or-call-macro)
;; Eval related mappings
("C-x e" . nil)
("C-x e b" . eval-buffer)
("C-x e d" . eval-defun)
("C-x e r" . eval-region)
("C-x e e" . eval-expression)
;; Window-management
("C-o" . nil)
("C-o C-o" . other-window)
("C-o o" . other-window)
@@ -53,7 +62,9 @@
("d" . windmove-right)
:repeat-map next-buffer-repeat-map
("n" . next-buffer)
("p" . previous-buffer)))
("p" . previous-buffer)
:repeat-map kmacro-repeat-map
(")" . kmacro-end-or-call-macro)))
(use-package dired
:bind (:map dired-mode-map
@@ -65,9 +76,6 @@
:init
(dirvish-override-dired-mode))
(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)
@@ -143,7 +151,6 @@
("v" . View-scroll-half-page-forward)
("V" . View-scroll-half-page-backward)))
(use-package direnv
:ensure t
:config