From c8e16e82e898b7596021da000cbb8799a856e786 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 26 Mar 2018 15:45:32 +0900 Subject: [PATCH] Add ripgrep support --- emacs.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs.el b/emacs.el index c85a4da..856ae7f 100644 --- a/emacs.el +++ b/emacs.el @@ -1440,6 +1440,11 @@ the list." (shell-command "git rev-parse --git-dir")) "git --no-pager -c color.grep=false grep -nH -e ") + ;; ripgrep + ("rg" + (executable-find "rg") + "rg --no-heading --color=never --smart-case ") + ;; the silver searcher ("ag" (executable-find "ag") @@ -1536,6 +1541,7 @@ Commands are searched from ALIST." (define-my-rgrep "ack") (define-my-rgrep "ag") +(define-my-rgrep "rg") (define-my-rgrep "gitgrep") (define-my-rgrep "grep") (define-my-rgrep "global")