From 36f340b6596ae8cfcf13744654ff4ee253ec7649 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Tue, 30 May 2023 19:52:45 -0400 Subject: Improve default `isearch` functionality --- init.el | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 846d4ce..af221ef 100644 --- a/init.el +++ b/init.el @@ -273,8 +273,8 @@ ;; --------------------------------------------------------------------- -;;; Completion & Correction -;; ------------------------ +;;; Completion, Correction, & Search +;; --------------------------------- ;; Completion and correction are the main source of my typing efficiency ;; if I'm being honest. ;; --------------------------------------------------------------------- @@ -355,6 +355,23 @@ completion-category-overrides '((file (styles partial-completion))))) +;; --------------------------------- +;; Search +;; ------ +;; Find stuff. +;; --------------------------------- + +(use-package isearch + :straight (:type built-in) + :config + (setq isearch-lazy-count t + lazy-count-prefix-format nil + lazy-count-suffix-format " (%s/%S)" + search-whitespace-regexp ".*" + isearch-lax-whitespace t + isearch-regexp-lax-whitespace t)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3