refactor(config): Tidy Emacs config across modules

This commit is contained in:
2026-06-09 03:17:54 +08:00
parent 75fff1e3a7
commit 83fb3d783c
15 changed files with 92 additions and 77 deletions

View File

@@ -154,6 +154,10 @@ targets."
:config
;;Quit completion before saving
(add-hook 'before-save-hook #'corfu-quit)
(add-hook 'eshell-mode-hook
(lambda ()
(setq-local corfu-auto nil)
(local-set-key (kbd "TAB") 'completion-at-point)))
:bind
(:map corfu-map
("RET" . nil)))
@@ -164,12 +168,6 @@ targets."
:hook
(after-init . corfu-terminal-mode))
;; 在eshell中使用tab打开补全
(add-hook 'eshell-mode-hook
(lambda ()
(setq-local corfu-auto nil)
(local-set-key (kbd "TAB") 'completion-at-point)))
(use-package emacs
:custom
(tab-always-indent 'complete)