Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4530a6e3b5
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.555 kb
;; https://twitter.com/#!/higepon/status/201804128425480193
(require 'grep)
(grep-apply-setting 'grep-find-command "~/bin/ack --nocolor --nogroup ")
(defun find-grep-in-project ()
(interactive)
(let* ((root (or (locate-dominating-file default-directory ".git") ""))
(ack "~/bin/ack --nocolor --nogroup")
(command
(read-from-minibuffer "COMMAND: " `(,(format "%s '%s' %s" ack (or (current-word) "") root) . ,(+ 3 (length ack))))))
(grep-find command)))
(defalias 'fgp 'find-grep-in-project)
(provide 'my-grep-config)
Jump to Line
Something went wrong with that request. Please try again.