summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-04-02 11:13:04 +0200
committerAlan Pearce2023-04-02 11:13:04 +0200
commitc7a1a39e27b0fc94183d14912ab47a394fa90d41 (patch)
treeff286f1a4faffef4149aeb04be5466f155b87fa7 /user/emacs
parent5a547ea64dd1bb5c5b8b78fa7afb5d92d2dd19cd (diff)
downloadnixfiles-c7a1a39e27b0fc94183d14912ab47a394fa90d41.tar.lz
nixfiles-c7a1a39e27b0fc94183d14912ab47a394fa90d41.tar.zst
nixfiles-c7a1a39e27b0fc94183d14912ab47a394fa90d41.zip
emacs: sort minibuffer completion candidates by frecency
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el5
1 files changed, 5 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