summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-01-19 00:30:30 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-01-19 00:30:30 +0100
commit0b97a0daab09af542c7cfa97ad79543f809cc389 (patch)
treef96678931c4d908dd258b7c919c9fbf789202e52
parent0e325d32e435c7ac59b2a26a9308e32fef12b2cf (diff)
README: Expand section on Corfu in the minibuffer
-rw-r--r--README.org8
1 files changed, 5 insertions, 3 deletions
diff --git a/README.org b/README.org
index b7ea658..57318e0 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