From 69abf8d1b05a6e821be91be2a1b553b027b64420 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 12 Apr 2021 12:53:47 -0500 Subject: Remove `ctrlf' and customize `isearch' While Ctrlf is nice, it doesn't hook into other mechanisms of Emacs as well as Isearch. So .. I'm just going to put up with Isearch for now. Honestly I don't miss Ctrlf too much. --- init.el | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/init.el b/init.el index 4aa5165..fcc560e 100644 --- a/init.el +++ b/init.el @@ -309,6 +309,9 @@ (setup imenu (:option imenu-auto-rescan t)) +(setup isearch + (:option search-default-mode t)) + (setup debugger (:hook visual-line-mode) (:leader "d" toggle-debug-on-error)) @@ -521,22 +524,6 @@ call `zzz-to-char'." (:global "M-z" acdw/zzz-up-to-char)) -;;; Search & Replace -;; -;; I use `ctrlf' for search (it is more "sane" than `isearch'), but I also like -;;`anzu' for `query-replace' (M-%, etc). At some point, I want to make them -;;better friends (i.e., allow calling `anzu-isearch-query-replace' from within -;;`ctrlf'), but I have yet to write the necessary functionality. - -;; Now that I'm thinking about it, I could /maybe/ switch to `visual-regexp' -;; for `query-replace' functionality, since the number of matches is taken care -;; of in `ctrlf'. .. - -(setup (:straight ctrlf) - (:option ctrlf-default-search-style 'fuzzy-regexp - ctrlf-alternate-search-style 'literal) - (ctrlf-mode +1)) - (setup (:straight anzu) (:option anzu-replace-to-string-separator " → " anzu-cons-mode-line-p nil) -- cgit 1.4.1-21-gabe81