File: corfu-history.el.html

Enable corfu-history-mode(var)/corfu-history-mode(fun) to sort candidates by their history position.

The recently selected candidates are stored in the corfu-history variable. If history-delete-duplicates is nil, duplicate elements are ranked higher with exponential decay. In order to save the history across Emacs sessions, enable savehist-mode(var)/savehist-mode(fun).

(corfu-history-mode)
(savehist-mode)

Defined variables (6)

corfu-historyHistory of Corfu candidates.
corfu-history--hashHash table of Corfu candidates.
corfu-history-decayExponential decay for the position shift of duplicate elements.
corfu-history-duplicateHistory position shift for duplicate history elements.
corfu-history-modeNon-nil if Corfu-History mode is enabled.
corfu-history-mode-hookHook run after entering or leaving ‘corfu-history-mode’.

Defined functions (3)

corfu-history--sort(CANDS)
corfu-history--sort-predicate(X Y)
corfu-history-mode(&optional ARG)

Defined faces (0)