summaryrefslogtreecommitdiffhomepage
path: root/completion.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-11-03 03:37:20 +0000
committerjao <jao@gnu.org>2021-11-03 03:37:20 +0000
commitf533cf856e281a7fcfd8645684742e5bd14a1a5d (patch)
treeb9bcbdc17ebc8d1d49a9fbf62a502c5d81f7ca5a /completion.org
parent1777c9fbd8c8ac4be135c9c4dde8ac01bd728d57 (diff)
downloadelibs-f533cf856e281a7fcfd8645684742e5bd14a1a5d.tar.gz
elibs-f533cf856e281a7fcfd8645684742e5bd14a1a5d.tar.bz2
vertico: experiment with tab as next
Diffstat (limited to 'completion.org')
-rw-r--r--completion.org23
1 files changed, 12 insertions, 11 deletions
diff --git a/completion.org b/completion.org
index eb3b52b..8912e06 100644
--- a/completion.org
+++ b/completion.org
@@ -66,18 +66,19 @@
#+begin_src emacs-lisp
(use-package vertico
:ensure t
- :init (setq vertico-count 20
- vertico-cycle t
- vertico-group-format nil
- org-refile-use-outline-path t)
-
- :config
- ;; (defun jao--be-orderless (&rest _any)
- ;; (setq-local completion-styles '(orderless)))
- ;; (unless (eq completion-styles '(orderless))
- ;; (advice-add 'vertico--setup :before #'jao--be-orderless))
+ :init
+ (setq vertico-count 20
+ vertico-cycle t
+ vertico-group-format nil
+ org-refile-use-outline-path t)
+ (vertico-mode 1)
+ :bind (:map vertico-map (("TAB" . #'vertico-next)
+ ("<backtab>" . #'vertico-previous)
+ ("C-SPC" . #'vertico-insert))))
+
+ (setq read-extended-command-predicate
+ #'command-completion-default-include-p)
- (vertico-mode))
#+end_src
* marginalia
#+begin_src emacs-lisp