Variable: corfu-mode-hook

corfu-mode-hook is a customizable variable defined in corfu.el.

Value

(corfu-mode-set-explicitly(var)/corfu-mode-set-explicitly(fun))

Documentation

Hook run after entering or leaving corfu-mode(var)/corfu-mode(fun).

No problems result if this variable is not bound. add-hook automatically binds it. (This is true for all hook variables.)

Source Code

;; Defined in ~/.emacs.d/elpa/corfu-20260813.950/corfu.el
;;;###autoload
(define-minor-mode corfu-mode
  "COmpletion in Region FUnction."
  :group 'corfu :keymap corfu-mode-map
  (cond
   (corfu-mode
    (when corfu-auto
      (require 'corfu-auto)
      (add-hook 'post-command-hook 'corfu-auto--post-command 10 'local))
    (setq-local completion-in-region-function #'corfu--in-region))
   (t
    (remove-hook 'post-command-hook 'corfu-auto--post-command 'local)
    (kill-local-variable 'completion-in-region-function))))