Browse Source

emacs.el: use ag and ack over global and gitgrep by my-rgrep

pull/1/head
10sr 10 years ago
parent
commit
e1d3be700f
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      emacs.el

+ 10
- 10
emacs.el View File

@@ -2235,6 +2235,16 @@ ARG is ignored."


(defvar my-rgrep-alist (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 ;; gnu global
("global" ("global"
(and (require 'gtags nil t) (and (require 'gtags nil t)
@@ -2248,16 +2258,6 @@ ARG is ignored."
(shell-command "git rev-parse --git-dir")) (shell-command "git rev-parse --git-dir"))
"git --no-pager -c color.grep=false grep -nH -e ") "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
("grep" ("grep"
t t


Loading…
Cancel
Save