feat: Add god-mode modal editing with custom keybindings

This commit is contained in:
2026-05-12 09:12:22 +08:00
parent 61edd16f0c
commit b0a340f8b5
4 changed files with 40 additions and 5 deletions

View File

@@ -9,6 +9,14 @@
(setq mac-command-modifier 'meta)
(setq mac-option-modifier 'none))
;; god-mode
(general-def god-local-mode-map
"i" 'god-mode-all
"<escape>" 'god-mode-all
"[" 'backward-paragraph
"]" 'forward-paragraph
"." 'repeat)
;; g for gptel
(general-def
:prefix "C-c g"
@@ -165,7 +173,8 @@
"M-{" 'org-previous-visible-heading
"M-}" 'org-next-visible-heading
"C-," 'duplicate-and-move-to-next-line
"C-c o l" 'denote-link)
"C-c o l" 'denote-link
"C-a" 'org-beginning-of-line)
;; hs-hide-mode
(general-def hs-minor-mode-map
@@ -220,6 +229,10 @@
;; global map
(general-def
;; god-mode
"<escape>" 'god-mode-all
"M-i" 'god-mode-all
;; buffer, file, and window
"<f2>" 'open-init-file
"<mouse-4>" 'previous-buffer
@@ -229,6 +242,10 @@
"C-x C-b" 'ibuffer-other-window
"C-x K" 'crux-kill-other-buffers
"C-x b" 'consult-buffer
"C-x C-1" 'delete-other-windows
"C-x C-2" 'split-window-below
"C-x C-3" 'split-window-right
"C-x C-0" 'delete-window
;; edit
"M-c" 'capitalize-dwim