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-history | History of Corfu candidates. |
corfu-history--hash | Hash table of Corfu candidates. |
corfu-history-decay | Exponential decay for the position shift of duplicate elements. |
corfu-history-duplicate | History position shift for duplicate history elements. |
corfu-history-mode | Non-nil if Corfu-History mode is enabled. |
corfu-history-mode-hook | Hook 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) |