From 2a4201e74a784681a2db5f2d4828cfe696a6dd83 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 3 Jun 2013 16:29:53 +0900 Subject: [PATCH] fix search f --- emacs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index 5c3e874..88caa18 100644 --- a/emacs.el +++ b/emacs.el @@ -902,14 +902,14 @@ 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 "%s '%s' -r ." - grep-command + (grep (format "grep -nH -e '%s' -r ." word)))) (message "No word at point.") nil))