I often use the command grep-find in emacs to search through my source files, but it's annying that it always finds matches in temporary files and backup files and so on. The default command for grep-find is:
find . -type f -print0 | xargs -0 -e grep -nH -e
I know I can modify it before I run it to match my needs but how do I change it such that it's correct on startup ?