summaryrefslogtreecommitdiffhomepage
path: root/completion.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-06-25 23:53:11 +0100
committerjao <jao@gnu.org>2021-06-25 23:53:11 +0100
commit4b114554f2f72773e50fea0e23649ec37b8a5e87 (patch)
tree22a0aa9c03641fcbac672d6d9960e6d7f5dc3ea0 /completion.org
parentb405f4f3b3c73f8f4caebab94ff8c8a21ec933a7 (diff)
downloadelibs-4b114554f2f72773e50fea0e23649ec37b8a5e87.tar.gz
elibs-4b114554f2f72773e50fea0e23649ec37b8a5e87.tar.bz2
completion: corfu-auto
Diffstat (limited to 'completion.org')
-rw-r--r--completion.org14
1 files changed, 12 insertions, 2 deletions
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