summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-12 12:53:47 -0500
committerCase Duckworth2021-04-12 12:53:47 -0500
commit69abf8d1b05a6e821be91be2a1b553b027b64420 (patch)
tree93eb599f56477a779c0fccadd3275516a95effea
parentCustomize `customize' (diff)
downloademacs-69abf8d1b05a6e821be91be2a1b553b027b64420.tar.gz
emacs-69abf8d1b05a6e821be91be2a1b553b027b64420.zip
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.
-rw-r--r--init.el19
1 files 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 @@
309(setup imenu 309(setup imenu
310 (:option imenu-auto-rescan t)) 310 (:option imenu-auto-rescan t))
311 311
312(setup isearch
313 (:option search-default-mode t))
314
312(setup debugger 315(setup debugger
313 (:hook visual-line-mode) 316 (:hook visual-line-mode)
314 (:leader "d" toggle-debug-on-error)) 317 (:leader "d" toggle-debug-on-error))
@@ -521,22 +524,6 @@ call `zzz-to-char'."
521 524
522 (:global "M-z" acdw/zzz-up-to-char)) 525 (:global "M-z" acdw/zzz-up-to-char))
523 526
524;;; Search & Replace
525;;
526;; I use `ctrlf' for search (it is more "sane" than `isearch'), but I also like
527;;`anzu' for `query-replace' (M-%, etc). At some point, I want to make them
528;;better friends (i.e., allow calling `anzu-isearch-query-replace' from within
529;;`ctrlf'), but I have yet to write the necessary functionality.
530
531;; Now that I'm thinking about it, I could /maybe/ switch to `visual-regexp'
532;; for `query-replace' functionality, since the number of matches is taken care
533;; of in `ctrlf'. ..
534
535(setup (:straight ctrlf)
536 (:option ctrlf-default-search-style 'fuzzy-regexp
537 ctrlf-alternate-search-style 'literal)
538 (ctrlf-mode +1))
539
540(setup (:straight anzu) 527(setup (:straight anzu)
541 (:option anzu-replace-to-string-separator " → " 528 (:option anzu-replace-to-string-separator " → "
542 anzu-cons-mode-line-p nil) 529 anzu-cons-mode-line-p nil)