summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-01-02 14:02:39 +0100
committerAlan Pearce2020-01-02 14:02:39 +0100
commite82ddce054267391a08e2514658961d9b1d56605 (patch)
tree0ee903d5563f2f241aaaf562f891210096275b35
parent4f5f84cbbfc454c31802040a0e0971554aaa61bf (diff)
downloadnixfiles-e82ddce054267391a08e2514658961d9b1d56605.tar.lz
nixfiles-e82ddce054267391a08e2514658961d9b1d56605.tar.zst
nixfiles-e82ddce054267391a08e2514658961d9b1d56605.zip
Emacs: show number of search matches in minibuffer or modeline
-rw-r--r--user/emacs/.emacs.d/init.el7
-rw-r--r--user/settings/emacs.nix1
2 files changed, 7 insertions, 1 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index 811358da..5d1be717 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -214,7 +214,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
                                      (unpackaged/smerge-hydra/body)))))
 
 (use-package swiper
-  :general ([remap isearch-forward] #'swiper-isearch))
+  :general ([remap isearch-forward] #'swiper-isearch)
+  :config (progn
+            (setq ivy-count-format "%d/%d ")))
 
 ;; transition smex history to amx
 (let ((smex-save-file (concat user-emacs-directory "smex-items")))
@@ -299,6 +301,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   (:states '(normal motion)
            "g s" #'evil-avy-goto-symbol-1))
 
+(use-package evil-anzu
+  :after evil)
+
 (defvar evil-collection-company-use-tng t)
 (use-package evil-collection
   :after (evil)
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 1260d30e..552784ab 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -97,6 +97,7 @@ in
       eshell-toggle
       eshell-up
       evil
+      evil-anzu
       evil-collection
       evil-commentary
       evil-ledger