Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defun grep-string-in (s project-root)
(interactive (list (read-string "string: ")
"Project Root: "
(locate-dominating-file default-directory "project.clj"))))
(message (concat s project-root))
(let* ((cmd (concat "grep -nH -e " s " -R " project-root)))
(setq last-run-grep cmd)
(grep cmd)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.