From 18a419ae4bb1151ba84f88629987cc8f909c9361 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 18 Jan 2022 23:31:06 +0000 Subject: corfu for M-:, finally! --- completion.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/completion.org b/completion.org index 0e52b56..6f09336 100644 --- a/completion.org +++ b/completion.org @@ -137,6 +137,12 @@ ("C-" . corfu-insert) ("\r" . jao-corfu-quit-or-insert))) + (defun corfu-in-minibuffer () + "Enable Corfu in the minibuffer only if Mct/Vertico are not active." + (unless (bound-and-true-p mct--active) (corfu-mode 1))) + + (add-hook 'minibuffer-setup-hook #'corfu-in-minibuffer 1) + (corfu-global-mode 1) #+end_src -- cgit v1.2.3