Created
October 5, 2023 08:20
-
-
Save viiru-/03375a8ce9ef8cb8d9b5203f091ce59d to your computer and use it in GitHub Desktop.
Wrapper to default vc-git-grep to the project root
This file contains hidden or 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 project-git-grep () | |
(interactive) | |
(let* ((pr (project-current t)) | |
(default-directory (project-root pr))) | |
(call-interactively #'vc-git-grep))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment