diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-04-18 08:31:56 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-04-18 08:31:56 +0200 |
| commit | 43e33afbf7d63eb571353989bc048f43f51bd4d3 (patch) | |
| tree | 6bccdce4da2d90062bc91b0b1f030d9cc4b441f5 /README.org | |
| parent | 5daeb9c5b76243ea5b2d6d3dd5692e4eefda4f4b (diff) | |
README: Improve corfu-move-to-minibuffer
Diffstat (limited to 'README.org')
| -rw-r--r-- | README.org | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -421,12 +421,13 @@ The command ~corfu-move-to-minibuffer~ is defined here in terms of ~completing-read~. #+begin_src emacs-lisp - (defun corfu-move-to-minibuffer () - (interactive) +(defun corfu-move-to-minibuffer () + (interactive) + (when completion-in-region--data (let ((completion-extra-properties corfu--extra) completion-cycle-threshold completion-cycling) - (apply #'consult-completion-in-region completion-in-region--data))) - (keymap-set corfu-map "M-m" #'corfu-move-to-minibuffer) + (apply #'consult-completion-in-region completion-in-region--data)))) +(keymap-set corfu-map "M-m" #'corfu-move-to-minibuffer) #+end_src * Key bindings |
