refactor(config): Tidy Emacs config across modules
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user