Sometimes I want to replace [$]
with \(
and [/$]
with \)
either in the region or in the whole buffer. replace-string
works well for that, except for requiring me to type the strings I want to replace. I would like to call it with these specific strings from an elisp function. How can I do that?
Add a comment
|
1 Answer
From replace-string
documentation:
This function is for interactive use only; in Lisp code use
search-forward
andreplace-match
instead.