Variable: global-corfu-modes
global-corfu-modes is a customizable variable defined in corfu.el.
Value
t
Documentation
Which major modes corfu-mode(var)/corfu-mode(fun) is switched on in.
This variable can be either t (all major modes), nil (no major modes), or a list of modes and (not modes) to switch use this minor mode or not. For instance
(c-mode (not message-mode mail-mode) text-mode)
means "use this mode in all modes derived from `c-mode', don't use in modes derived from `message-mode' or `mail-mode', but do use in other modes derived from `text-mode'". An element with value t means "use" and nil means "don't use". There's an implicit nil at the end of the list.
Source Code
;; Defined in ~/.emacs.d/elpa/corfu-20260813.950/corfu.el
;;;###autoload
(define-globalized-minor-mode global-corfu-mode
corfu-mode corfu--on
:group 'corfu
:predicate t
(remove-hook 'minibuffer-setup-hook #'corfu--minibuffer-on)
(when (and global-corfu-mode global-corfu-minibuffer)
(add-hook 'minibuffer-setup-hook #'corfu--minibuffer-on 100)))