From e18131888539be0678f215169751615e7769ee68 Mon Sep 17 00:00:00 2001 From: Gerry Agbobada <10496163+gagbo@users.noreply.github.com> Date: Sat, 1 May 2021 12:16:06 +0200 Subject: [PATCH] Setup consult as completion-in-region fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows `corfu` users to enable corfu and let it noop when _not_ using a graphical display. Having the function setup in `init` means company can properly override it when it’s activated later. --- modules/completion/selectrum/config.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/completion/selectrum/config.el b/modules/completion/selectrum/config.el index 2a0b4fac7..e48e37004 100644 --- a/modules/completion/selectrum/config.el +++ b/modules/completion/selectrum/config.el @@ -75,6 +75,7 @@ [remap switch-to-buffer-other-frame] #'consult-buffer-other-frame [remap yank-pop] #'consult-yank-pop [remap describe-bindings] #'embark-bindings) + (setq completion-in-region-function #'consult-completion-in-region) :config (recentf-mode) (setq consult-project-root-function #'doom-project-root)