[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico ea82a4a: README: Add example usage for consult-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico ea82a4a: README: Add example usage for consult-completion-in-region |
Date: |
Sat, 3 Jul 2021 10:57:19 -0400 (EDT) |
branch: externals/vertico
commit ea82a4a326434410a9706c49d0c3dcd3efa8130c
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
README: Add example usage for consult-completion-in-region
---
README.org | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/README.org b/README.org
index 4347492..1eaaa0d 100644
--- a/README.org
+++ b/README.org
@@ -160,6 +160,15 @@ In case you want to use Vertico for
completion-at-point/completion-in-region,
you can use the function ~consult-completion-in-region~ provided by the Consult
package.
+#+begin_src emacs-lisp
+ ;; Use `consult-completion-in-region' if Vertico is enabled.
+ (add-hook 'vertico-mode-hook (lambda ()
+ (setq completion-in-region-function
+ (if vertico-mode
+ #'consult-completion-in-region
+ #'completion--in-region))))
+#+end_src
+
You may also want to look into my [[https://github.com/minad/corfu][Corfu]]
package, which provides a minimal
completion system for completion-in-region using overlays. Corfu is developed
in
the same spirit as Vertico.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/vertico ea82a4a: README: Add example usage for consult-completion-in-region,
ELPA Syncer <=