I have the following custom function in ~ / .emacs:
(defun xi-rgrep (term) (grep-compute-defaults) (interactive "sSearch Term: ") (rgrep term "*.[ch]*" "../"))
This function simply launches rgrep for the term entered in the files / directories that interest me. However, I want to combine the original rgrep functionality with the fact that the default search term is a word in a dot (I think the term?). How do I achieve this? I tried several things, including startup (grep-read-regexp), but was not successful.
source share