From cb9350441eccb48054503679310f220246b6dccc Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Tue, 15 Jun 2021 22:01:26 -0400 Subject: Make Ivy more usable --- lisp/quality-of-life.el | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'lisp/quality-of-life.el') diff --git a/lisp/quality-of-life.el b/lisp/quality-of-life.el index 51aa9b6..bd4d66a 100644 --- a/lisp/quality-of-life.el +++ b/lisp/quality-of-life.el @@ -26,7 +26,12 @@ ;; Enable Ivy globally. :config - (ivy-mode 1)) + (ivy-mode 1) + + ;; If I'm typing a file name with capitalized letters, I may be holding shift + ;; when I press space. This is a pain in the ass, and I don't use the feature + ;; anyway, so I unbind it. + (bind-key "S-SPC" nil ivy-minibuffer-map)) ;; `counsel' is a nice Ivy-based frontend for a couple of interactive commands. @@ -44,6 +49,15 @@ ;; ("C-r" . swiper) ;; ("C-s" . swiper)) +;; Use a better sorting algorithm. + +(use-package ivy-prescient + :config + (ivy-prescient-mode) + (prescient-persist-mode) + :init + (setq prescient-save-file "~/.cache/prescient-save.el")) + ;;; ;;; Imenu -- cgit v1.3