From 65855b5c9980ff282234fb91a82a45d75b67f8c1 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 13 Aug 2022 19:41:47 +0100 Subject: completion: no auto en eshell --- custom/jao-custom-completion.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'custom/jao-custom-completion.el') 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))) -- cgit v1.2.3