all repos — nixfiles @ c7a1a39e27b0fc94183d14912ab47a394fa90d41

System and user configuration, managed by nix and home-manager

emacs: sort minibuffer completion candidates by frecency
Alan Pearce alan@alanpearce.eu
Sun, 02 Apr 2023 11:13:04 +0200
commit

c7a1a39e27b0fc94183d14912ab47a394fa90d41

parent

5a547ea64dd1bb5c5b8b78fa7afb5d92d2dd19cd

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -223,6 +223,11 @@ (add-to-list 'savehist-additional-variables 'command-history))) 
 (use-package vertico
   :ghook ('after-init-hook #'vertico-mode))
+(use-package prescient
+  :config (prescient-persist-mode +1))
+(use-package vertico-prescient
+  :after vertico
+  :ghook '(vertico-mode-hook))
 
 (setq completion-ignore-case t
       read-buffer-completion-ignore-case t
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -150,6 +150,7 @@ tree-sitter-indent         undo-tree
         use-package
         vertico
+        vertico-prescient
         wucuo
         wgrep-ag
         ws-butler