chore(config): Refactor Emacs configuration with multiple improvements
- Replace projectile with built-in project.el - Add cal-china-x for Chinese lunar calendar support - Add dired-gitignore integration with dirvish - Add mwim for smarter line navigation - Add keycast mode for key display - Add ef-themes theme collection - Improve corfu terminal handling for Emacs 31+ - Add gptel-agent-project and consult-ripgrep-project helpers - Remove custom.el from repo, support init-local.el for local config - Update theme faces for transient, keycast, and calendar holidays - Various keybinding additions and cleanup
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
"o" 'gptel
|
||||
"m" 'gptel-menu
|
||||
"s" 'gptel-send
|
||||
"a" 'gptel-agent
|
||||
"a" 'gptel-agent-project
|
||||
"t" 'gptel-tools)
|
||||
|
||||
(general-def gptel-mode-map
|
||||
@@ -45,14 +45,15 @@
|
||||
"t" 'consult-theme
|
||||
"c" 'my-color-picker
|
||||
"f" 'describe-face
|
||||
"r" 'rainbow-delimiters-mode)
|
||||
"r" 'rainbow-delimiters-mode
|
||||
"k" 'keycast-header-line-mode)
|
||||
|
||||
;; f for find and consult command
|
||||
(general-def
|
||||
:prefix "C-c f"
|
||||
"r" 'consult-recent-file
|
||||
"f" 'consult-fd
|
||||
"g" 'consult-ripgrep
|
||||
"g" 'consult-ripgrep-project
|
||||
"e" 'consult-flycheck
|
||||
"l" 'consult-locate
|
||||
"h" 'consult-fd-home
|
||||
@@ -60,7 +61,8 @@
|
||||
"d" 'my-open-current-directory
|
||||
"j" 'consult-jinx
|
||||
"k" 'consult-kmacro
|
||||
"o" 'consult-outline)
|
||||
"o" 'consult-outline
|
||||
"i" 'consult-info)
|
||||
|
||||
;; t for modes toggle
|
||||
(general-def
|
||||
@@ -137,6 +139,15 @@
|
||||
"C-s" 'consult-line
|
||||
"C-r" 'consult-line)
|
||||
|
||||
(general-def (dired-mode-map dirvish-mode-map)
|
||||
:prefix "C-c d"
|
||||
"d" 'dirvish-setup-menu
|
||||
"r" 'dirvish-renaming-menu
|
||||
"v" 'dirvish-vc-menu
|
||||
"m" 'dirvish-mark-menu
|
||||
"i" 'dirvish-file-info-menu
|
||||
"y" 'dirvish-yank-menu)
|
||||
|
||||
;; magit
|
||||
(general-def magit-mode-map
|
||||
"C-<tab>" 'my-magit-toggle-parent-section
|
||||
@@ -182,7 +193,8 @@
|
||||
"M-}" 'org-next-visible-heading
|
||||
"C-," 'duplicate-and-move-to-next-line
|
||||
"C-c o l" 'denote-link
|
||||
"C-a" 'org-beginning-of-line)
|
||||
"C-c o L" 'denote-org-link-to-heading
|
||||
"C-c o b" 'denote-backlinks)
|
||||
|
||||
;; hs-hide-mode
|
||||
(general-def hs-minor-mode-map
|
||||
@@ -217,6 +229,10 @@
|
||||
"C-c p d" 'persp-kill
|
||||
"C-x M-b" 'persp-ibuffer)
|
||||
|
||||
;; visual-line
|
||||
(general-def visual-line-mode-map
|
||||
"C-k" 'kill-visual-line)
|
||||
|
||||
;; global map with C-c prefix
|
||||
(general-def
|
||||
:prefix "C-c"
|
||||
@@ -229,7 +245,7 @@
|
||||
"a" 'org-agenda
|
||||
"l" 'org-store-link
|
||||
"k" 'comment-line
|
||||
;; "v" 'vterm
|
||||
"K" 'comment-kill
|
||||
"E" 'eshell
|
||||
"C-t" 'trashed
|
||||
"C-s" 'consult-focus-lines)
|
||||
@@ -261,13 +277,15 @@
|
||||
"C-," 'crux-duplicate-current-line-or-region
|
||||
"C-k" 'crux-smart-kill-line
|
||||
"C-<backspace>" 'crux-kill-line-backwards
|
||||
"C-a" 'crux-move-beginning-of-line
|
||||
"M-y" 'consult-yank-from-kill-ring
|
||||
"C-c <backspace>" 'hungry-delete-backward
|
||||
"C-c C-<backspace>" 'hungry-delete-forward
|
||||
"M-P" 'drag-stuff-up
|
||||
"M-N" 'drag-stuff-down
|
||||
"M-F" 'drag-stuff-right
|
||||
"M-B" 'drag-stuff-left
|
||||
"C-M-SPC" 'er/mark-symbol
|
||||
"M-@" 'er/mark-word
|
||||
|
||||
;; undo
|
||||
"C-/" 'undo-fu-only-undo
|
||||
@@ -295,6 +313,8 @@
|
||||
|
||||
;; other
|
||||
"C-x r b" 'consult-bookmark
|
||||
"C-x p b" 'consult-project-buffer
|
||||
"C-x p E" 'eat-project
|
||||
"C-;" 'embark-act)
|
||||
|
||||
(when *is-android*
|
||||
|
||||
Reference in New Issue
Block a user