瀏覽代碼

Try git-grep first for rgrep

master
10sr 6 年之前
父節點
當前提交
7147c1341a
共有 1 個檔案被更改,包括 6 行新增6 行删除
  1. +6
    -6
      emacs.el

+ 6
- 6
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


Loading…
取消
儲存