diff options
author | jao <jao@gnu.org> | 2022-01-18 23:31:06 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-01-19 20:38:11 +0000 |
commit | 18a419ae4bb1151ba84f88629987cc8f909c9361 (patch) | |
tree | 9f28b5ca49e3aaeb91202a7d1b8e936441876c84 | |
parent | 84bb01209f43a6b0fc3c2579d0c4f030bc804511 (diff) | |
download | elibs-18a419ae4bb1151ba84f88629987cc8f909c9361.tar.gz elibs-18a419ae4bb1151ba84f88629987cc8f909c9361.tar.bz2 |
corfu for M-:, finally!
-rw-r--r-- | completion.org | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/completion.org b/completion.org index 0e52b56..6f09336 100644 --- a/completion.org +++ b/completion.org @@ -137,6 +137,12 @@ ("C-<return>" . 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 |