emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu 0b97a0daab: README: Expand section on Corfu in th


From: ELPA Syncer
Subject: [elpa] externals/corfu 0b97a0daab: README: Expand section on Corfu in the minibuffer
Date: Tue, 18 Jan 2022 18:57:23 -0500 (EST)

branch: externals/corfu
commit 0b97a0daab09af542c7cfa97ad79543f809cc389
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    README: Expand section on Corfu in the minibuffer
---
 README.org | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.org b/README.org
index b7ea6585bc..57318e0ad1 100644
--- a/README.org
+++ b/README.org
@@ -142,13 +142,15 @@ the minibuffer, to avoid interference with specialised 
minibuffer completion UIs
 like Vertico or Mct. However you may still want to enable Corfu completion for
 commands like ~M-:~ (~eval-expression~) or ~M-!~ (~shell-command~), which read 
from the
 minibuffer, or more generally for all minibuffer inputs, as long as no other
-completion UI is active. If you use Vertico as your main minibuffer completion
-UI, you can use the following code snippet.
+completion UI is active. If you use Mct or Vertico as your main minibuffer
+completion UI, you can use the following code snippet.
 
 #+begin_src emacs-lisp
   (defun corfu-enable-in-minibuffer ()
     "Enable Corfu in the minibuffer only if Vertico is not active."
-    (unless (bound-and-true-p vertico--input) (corfu-mode 1)))
+    (unless (or (bound-and-true-p mct--active)
+                (bound-and-true-p vertico--input))
+      (corfu-mode 1)))
   (add-hook 'minibuffer-setup-hook #'corfu-enable-in-minibuffer 1)
 #+end_src
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]