diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-01-19 00:30:30 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-01-19 00:30:30 +0100 |
| commit | 0b97a0daab09af542c7cfa97ad79543f809cc389 (patch) | |
| tree | f96678931c4d908dd258b7c919c9fbf789202e52 | |
| parent | 0e325d32e435c7ac59b2a26a9308e32fef12b2cf (diff) | |
README: Expand section on Corfu in the minibuffer
| -rw-r--r-- | README.org | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |
