summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-04-02 11:13:04 +0200
committerAlan Pearce2023-04-02 11:13:04 +0200
commitc7a1a39e27b0fc94183d14912ab47a394fa90d41 (patch)
treeff286f1a4faffef4149aeb04be5466f155b87fa7
parent5a547ea64dd1bb5c5b8b78fa7afb5d92d2dd19cd (diff)
downloadnixfiles-c7a1a39e27b0fc94183d14912ab47a394fa90d41.tar.lz
nixfiles-c7a1a39e27b0fc94183d14912ab47a394fa90d41.tar.zst
nixfiles-c7a1a39e27b0fc94183d14912ab47a394fa90d41.zip
emacs: sort minibuffer completion candidates by frecency
-rw-r--r--user/emacs/init.el5
-rw-r--r--user/settings/emacs.nix1
2 files changed, 6 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 4280600b..e8c3bed0 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -223,6 +223,11 @@ With two prefix arguments, write out the day and month name."
 
 (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
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index bd26a8fe..fe9cbe11 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -150,6 +150,7 @@ in
         undo-tree
         use-package
         vertico
+        vertico-prescient
         wucuo
         wgrep-ag
         ws-butler