Created
March 29, 2013 18:21
-
-
Save jaycfields/5272575 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun grep-string-in (s project-root) | |
(interactive (list (read-string "string: ") | |
(read-directory-name | |
"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