aboutsummaryrefslogtreecommitdiff
path: root/modules/selection-framework.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-11 13:45:58 -0500
committerCraig Jennings <c@cjennings.net>2026-07-11 13:45:58 -0500
commit262c45559bcf2574b1f8d754c581040b076f3551 (patch)
tree4fbd55e10ace19ba27d58278687cd66446750534 /modules/selection-framework.el
parentd9897243c88b39109996e67f214ebff63d000742 (diff)
downloaddotemacs-262c45559bcf2574b1f8d754c581040b076f3551.tar.gz
dotemacs-262c45559bcf2574b1f8d754c581040b076f3551.zip
refactor(selection-framework): drop the overridden vertico sort custom
vertico-sort-function was set to history-alpha, but vertico-prescient-mode owns sorting inside every vertico session and overrode it, so the custom never took effect. I removed it (leaving a note) and kept prescient's frecency sorting, which is the intended behavior.
Diffstat (limited to 'modules/selection-framework.el')
-rw-r--r--modules/selection-framework.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/selection-framework.el b/modules/selection-framework.el
index 7f7f9a47..8e3ee252 100644
--- a/modules/selection-framework.el
+++ b/modules/selection-framework.el
@@ -41,7 +41,9 @@
(vertico-cycle t) ; Cycle through candidates
(vertico-count 10) ; Number of candidates to display
(vertico-resize nil) ; Don't resize the minibuffer
- (vertico-sort-function #'vertico-sort-history-alpha) ; History first, then alphabetical
+ ;; Sorting is owned by `vertico-prescient-mode' (frecency). A
+ ;; `vertico-sort-function' set here is overridden inside every vertico
+ ;; session, so it is omitted rather than left as dead config.
:bind (:map vertico-map
("C-j" . vertico-next)
("C-k" . vertico-previous)