diff options
Diffstat (limited to 'custom/jao-custom-completion.el')
-rw-r--r-- | custom/jao-custom-completion.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/custom/jao-custom-completion.el b/custom/jao-custom-completion.el index 4f9fb33..88f0b4c 100644 --- a/custom/jao-custom-completion.el +++ b/custom/jao-custom-completion.el @@ -147,6 +147,10 @@ (with-eval-after-load "eldoc" (eldoc-add-command-completions "corfu-")) + (defun jao-corfu-no-auto () (setq-local corfu-auto nil) (corfu-mode)) + + (add-hook 'eshell-mode-hook #'jao-corfu-no-auto) + (defun jao-corfu--active-p () (and (>= corfu--index 0) (/= corfu--index corfu--preselect))) |