Add ctrlf
TODO: incorporate some kind of visual find-replace with ctrlf
This commit is contained in:
parent
65f7907ea5
commit
8369e93657
16
init.el
16
init.el
|
@ -499,6 +499,22 @@ 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)
|
||||
|
|
Loading…
Reference in New Issue