# HG changeset patch # User Oleksandr Gavenko # Date 1268906882 -7200 # Node ID 88e4e74c0b6c52a530adcadacca6f2c434081241 # Parent ee15316c1126cc0e9b6ce53bb4022c5d5450a7ce Set grep-find-template. This pattern oriented to POSIX like sh shell and availability of GNU grep for -H option. diff -r ee15316c1126 -r 88e4e74c0b6c .emacs-my --- a/.emacs-my Thu Mar 18 12:02:21 2010 +0200 +++ b/.emacs-my Thu Mar 18 12:08:02 2010 +0200 @@ -199,6 +199,8 @@ ;; Assume that we have GNU grep, so -H available. (setq grep-template "grep -nH ") (setq grep-find-command "find . '(' -name .svn -o -name CVS -o -name .hg -o -name _darcs -o -name .git ')' -prune -o -type f -name '*' -print0 | xargs -0 -e grep -nH ") +;; This pattern oriented to POSIX like sh shell and availability of GNU grep for -H option. +(setq grep-find-template "find . -type f -exec grep -nH {} \\;") ;; Do not set t because some grep do not has --color options. (setq grep-highlight-matches nil) (setq grep-use-null-device nil)