Setup consult as completion-in-region fallback

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.
This commit is contained in:
Gerry Agbobada 2021-05-01 12:16:06 +02:00 committed by Itai Y. Efrat
parent 19c07444e7
commit e181318885

View file

@ -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)