From 7147c1341acdb68911a0e40d8d942e1b5f23e246 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 14 Mar 2018 17:00:17 +0900 Subject: [PATCH] Try git-grep first for rgrep --- emacs.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/emacs.el b/emacs.el index 5575859..0bdaa6e 100644 --- a/emacs.el +++ b/emacs.el @@ -1456,6 +1456,12 @@ the list." (defvar my-rgrep-alist `( + ;; git grep + ("gitgrep" + (eq 0 + (shell-command "git rev-parse --git-dir")) + "git --no-pager -c color.grep=false grep -nH -e ") + ;; the silver searcher ("ag" (executable-find "ag") @@ -1473,12 +1479,6 @@ the list." (gtags-get-rootpath)) "global --result grep ") - ;; git grep - ("gitgrep" - (eq 0 - (shell-command "git rev-parse --git-dir")) - "git --no-pager -c color.grep=false grep -nH -e ") - ;; grep ("grep" t