I have a working sexp for configuration vc-git-grep
:
(setq vc-git-grep-template "git --no-pager grep -n -i -e <R> -- <F>")
Then in dired-mode
I evaluate M-x
vc-git-grep
and everething works as expected.
And then I want to create defun:
(defun Pfedj/vc-git-grep-noncase()
(interactive)
(setq vc-git-grep-template "git --no-pager grep -n -i -e <R> -- <F>")
(vc-git-grep))
When in dired-mode
I evaluate
M-x
Pfedj/vc-git-grep-template
==> Wrong number of arguments: (1 . 3), 0
How can I fix my function?