From 4b114554f2f72773e50fea0e23649ec37b8a5e87 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 25 Jun 2021 23:53:11 +0100 Subject: completion: corfu-auto --- completion.org | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'completion.org') diff --git a/completion.org b/completion.org index b3b5964..5fb95ad 100644 --- a/completion.org +++ b/completion.org @@ -7,7 +7,7 @@ (use-package emacs :init (setq completion-category-defaults nil - completion-cycle-threshold 3 + completion-cycle-threshold nil completion-category-overrides '((file (styles . (partial-completion)))))) #+end_src @@ -35,13 +35,23 @@ (use-package corfu :ensure t :init (setq corfu-cycle t + corfu-count 10 + corfu-no-match (propertize "ยทยทยท" 'face 'bold) + corfu-auto t corfu-min-width 20 - corfu-max-width 100) + corfu-max-width 100 + corfu-excluded-modes '(eshell-mode)) :bind (:map corfu-map ("TAB" . corfu-next) ("S-TAB" . corfu-previous))) (corfu-global-mode 1) + + (with-eval-after-load "eshell" + (defun jao-corfu-eshell () + (setq-local corfu-auto nil) + (corfu-mode 1)) + (add-hook 'eshell-mode-hook #'jao-corfu-eshell)) #+end_src * vertico #+begin_src emacs-lisp -- cgit v1.2.3