I'm looking to create a keybinding that will perform the following shortcut:
- call
isearch-forward-symbol-at-point
- call
query-replace-regexp
It's basically a shortcut for the following key combo: M-s .
then C-M $
Here is my attempt, but my elisp is rather weak:
(global-set-key (kbd "C-x r")
(lambda ()
(interactive)
(query-replace-regexp (isearch-forward-symbol-at-point))))
Any suggestions?