summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-09 14:13:45 -0500
committerCase Duckworth2021-04-09 14:13:45 -0500
commit8369e93657c6c55f2bf3d4f330ed62a5c2219ebe (patch)
treebad33f055946af70270351834a87d0d6193ab2f9
parentMerge branch 'main' of https://tildegit.org/acdw/emacs (diff)
downloademacs-8369e93657c6c55f2bf3d4f330ed62a5c2219ebe.tar.gz
emacs-8369e93657c6c55f2bf3d4f330ed62a5c2219ebe.zip
Add ctrlf
TODO: incorporate some kind of visual find-replace with ctrlf
-rw-r--r--init.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/init.el b/init.el index a7c8128..d70aeb0 100644 --- a/init.el +++ b/init.el
@@ -499,6 +499,22 @@ call `zzz-to-char'."
499 499
500 (:global "M-z" acdw/zzz-up-to-char)) 500 (:global "M-z" acdw/zzz-up-to-char))
501 501
502;;; Search & Replace
503;;
504;; I use `ctrlf' for search (it is more "sane" than `isearch'), but I also like
505;;`anzu' for `query-replace' (M-%, etc). At some point, I want to make them
506;;better friends (i.e., allow calling `anzu-isearch-query-replace' from within
507;;`ctrlf'), but I have yet to write the necessary functionality.
508
509;; Now that I'm thinking about it, I could /maybe/ switch to `visual-regexp'
510;; for `query-replace' functionality, since the number of matches is taken care
511;; of in `ctrlf'. ..
512
513(setup (:straight ctrlf)
514 (:option ctrlf-default-search-style 'fuzzy-regexp
515 ctrlf-alternate-search-style 'literal)
516 (ctrlf-mode +1))
517
502(setup (:straight anzu) 518(setup (:straight anzu)
503 (:option anzu-replace-to-string-separator " → " 519 (:option anzu-replace-to-string-separator " → "
504 anzu-cons-mode-line-p nil) 520 anzu-cons-mode-line-p nil)