summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-completion.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-08-13 19:41:47 +0100
committerjao <jao@gnu.org>2022-08-13 19:41:47 +0100
commit65855b5c9980ff282234fb91a82a45d75b67f8c1 (patch)
tree300358c5cefdf3613c88e59bba703549adefcd2c /custom/jao-custom-completion.el
parent7fd611550b54dd47b1da695bbdf8d2ee9e1746fa (diff)
downloadelibs-65855b5c9980ff282234fb91a82a45d75b67f8c1.tar.gz
elibs-65855b5c9980ff282234fb91a82a45d75b67f8c1.tar.bz2
completion: no auto en eshell
Diffstat (limited to 'custom/jao-custom-completion.el')
-rw-r--r--custom/jao-custom-completion.el4
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)))