From 515a593129435e12321e7766892404514435181d Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 6 Jun 2013 17:02:26 +0900 Subject: [PATCH] use my-rgrep for search-symbol --- emacs.el | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/emacs.el b/emacs.el index 5872899..869e491 100644 --- a/emacs.el +++ b/emacs.el @@ -911,15 +911,7 @@ If called intearctively, find word at point." (if (and (require 'gtags nil t) (gtags-get-rootpath)) (gtags-goto-tag word "s") - (require 'grep) - (if (eq 0 - (shell-command "git rev-parse --git-dir")) - (compilation-start (format "git --no-pager grep -nH -e '%s'" - word) - 'grep-mode) - ;; TODO: handle ack - (grep (format "grep -nH -e '%s' -r ." - word)))) + (my-rgrep word)) (message "No word at point.") nil))