Variable: corfu-history-mode-hook
corfu-history-mode-hook is a customizable variable defined in
corfu-history.el.
Value
nil
Documentation
Hook run after entering or leaving corfu-history-mode(var)/corfu-history-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-history.el
;;;###autoload
(define-minor-mode corfu-history-mode
"Save completion history and sort candidates by history."
:global t :group 'corfu
(if corfu-history-mode
(add-function :override corfu-sort-function #'corfu-history--sort)
(remove-function corfu-sort-function #'corfu-history--sort)))