diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2025-04-06 11:46:58 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2025-04-06 14:11:47 +0200 |
| commit | 70dba3ff51039079739e9a500962335a92f7cd81 (patch) | |
| tree | 5a7647313cd9f5fafae6a12106ae0eeb6f11d15f | |
| parent | ed0ba822c90b8c345877bd58fc4189b2773fd328 (diff) | |
Update commentary
| -rw-r--r-- | README.org | 2 | ||||
| -rw-r--r-- | extensions/corfu-history.el | 10 |
2 files changed, 7 insertions, 5 deletions
@@ -525,7 +525,7 @@ following extensions come with the Corfu ELPA package: - [[https://github.com/minad/corfu/blob/main/extensions/corfu-echo.el][corfu-echo]]: =corfu-echo-mode= displays a brief candidate documentation in the echo area. - [[https://github.com/minad/corfu/blob/main/extensions/corfu-history.el][corfu-history]]: =corfu-history-mode= remembers selected candidates and sorts the - candidates by their history position. + candidates by their history position and frequency. - [[https://github.com/minad/corfu/blob/main/extensions/corfu-indexed.el][corfu-indexed]]: =corfu-indexed-mode= allows you to select indexed candidates with prefix arguments. - [[https://github.com/minad/corfu/blob/main/extensions/corfu-info.el][corfu-info]]: Actions to access the candidate location and documentation. diff --git a/extensions/corfu-history.el b/extensions/corfu-history.el index c1d5059..5ff6039 100644 --- a/extensions/corfu-history.el +++ b/extensions/corfu-history.el @@ -26,10 +26,12 @@ ;;; Commentary: -;; Enable `corfu-history-mode' to sort candidates by their history -;; position. Maintain a list of recently selected candidates. In order -;; to save the history across Emacs sessions, enable `savehist-mode' and -;; add `corfu-history' to `savehist-additional-variables'. +;; Enable `corfu-history-mode' 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' and add `corfu-history' to +;; `savehist-additional-variables'. ;; ;; (corfu-history-mode 1) ;; (savehist-mode 1) |
