about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2023-05-19 09:54:36 +0100
committerDavid Morgan <djm_uk@protonmail.com>2023-05-19 09:54:36 +0100
commit24c2302e805291c7dd3f79e48a9b4f3821c787e5 (patch)
tree18077ec3a79945003fd60ba6eda5dae5906e0023
parent0156d2dcba208124e8d2e4a033c394dae361d04d (diff)
downloaddotfiles-24c2302e805291c7dd3f79e48a9b4f3821c787e5.tar.gz
Tweak isearch ui
-rw-r--r--.emacs.d/lisp/init-search.el16
1 files changed, 12 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-search.el b/.emacs.d/lisp/init-search.el
index e2945b2..9d4e487 100644
--- a/.emacs.d/lisp/init-search.el
+++ b/.emacs.d/lisp/init-search.el
@@ -3,20 +3,28 @@
 ;;; Code:
 
 (use-feature isearch
+  :config
+  (defface isearch-prompt
+    '((t (:foreground "gold")))
+    "Face for isearch minibuffer prompt."
+    :group 'isearch)
   :custom
   (search-whitespace-regexp ".*\\b")
   (isearch-lax-whitespace t)
   (isearch-allow-scroll t)
   (isearch-yank-on-move 'shift)
   (isearch-lazy-count t)
+  (lazy-count-prefix-format nil)
+  (lazy-count-suffix-format "   (%s/%s)")
+  (isearch-message-properties '(read-only t cursor-intangible t face isearch-prompt))
   :bind-keymap ("C-c s" . search-map) ;; M-s clashes with paredit/smartparens bindings
   :bind
   ("C-*" . isearch-forward-symbol-at-point)
   (:map search-map
-   ("M-s M-<" . isearch-beginning-of-buffer)
-   ("M-s M->" . isearch-end-of-buffer)
-   ("C-c s M-<" . isearch-beginning-of-buffer)
-   ("C-c s M->" . isearch-end-of-buffer)))
+        ("M-s M-<" . isearch-beginning-of-buffer)
+        ("M-s M->" . isearch-end-of-buffer)
+        ("C-c s M-<" . isearch-beginning-of-buffer)
+        ("C-c s M->" . isearch-end-of-buffer)))
 
 (use-package isearch-dabbrev
   :after isearch
href='#n142'>142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224