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

            ;; some variants of grep don't handle relative paths
            ;; (but expand-file-name doesn't work remotely)
            (expand-file-name dir)))
    (require 'grep)
    (grep-apply-setting
     'grep-command
     (concat "find -P "

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

