 ;; Author: Dan Harms <danielrharms@gmail.com>
 ;; Created: Tuesday, April 12, 2016
 ;; Version: 1.0
-;; Modified Time-stamp: <2016-04-14 09:23:09 dan.harms>
+;; Modified Time-stamp: <2016-04-15 10:17:47 dan.harms>
 ;; Modified by: Dan Harms
 ;; Keywords: grep coding
 


;;; Code:

(defun my/grep (&optional arg)
  "Provides a wrapper around grep to provide convenient shortcuts
to adjust the root directory.  With a prefix ARG of 64 (C-u C-u
C-u), or if the variable 'project-root-dir is not defined in the
current profile, the search directory will be chosen

             "-o -name \"*.sql\" -o -name \"*.py\" -o -name \"*.proto\" "
             "-o -name \"*.sh\" -o -name \"*.cs\" -o -name \"*.dart\" "
             "\")\" -print0 | xargs -0 grep -Isn "
             (when search-string (shell-quote-argument search-string))))
    (command-execute 'grep)))

(provide 'custom-grep)
