From e1d3be700fe83d6726693d3adcfce2a8e78d5f48 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 3 Mar 2014 15:50:34 +0900 Subject: [PATCH] emacs.el: use ag and ack over global and gitgrep by my-rgrep --- emacs.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/emacs.el b/emacs.el index 31ef7f6..fbfd750 100644 --- a/emacs.el +++ b/emacs.el @@ -2235,6 +2235,16 @@ ARG is ignored." (defvar my-rgrep-alist `( + ;; the silver searcher + ("ag" + (executable-find "ag") + "ag --nocolor --nogroup --nopager ") + + ;; ack + ("ack" + (executable-find "ack") + "ack --nocolor --nogroup --nopager ") + ;; gnu global ("global" (and (require 'gtags nil t) @@ -2248,16 +2258,6 @@ ARG is ignored." (shell-command "git rev-parse --git-dir")) "git --no-pager -c color.grep=false grep -nH -e ") - ;; the silver searcher - ("ag" - (executable-find "ag") - "ag --nocolor --nogroup --nopager ") - - ;; ack - ("ack" - (executable-find "ack") - "ack --nocolor --nogroup --nopager ") - ;; grep ("grep" t