Keybinding for emacs helm to recursively grep certain file extensions in your src directories

Helm for Emacs is a fantastic Quicksilver-like extension, but it gets quite wordy sometimes. Instead of C-u M-x helm-do-grep *nav to dir* *enter extensions* *enter query* to recursively grep, I defined the following in my init.el. Now hitting F1 will grep actual source across all my projects.

(defun project-search ()
  (interactive)
  (helm-do-grep-1 '("/home/vaughn/src")
                  '(4)
                  nil
                  '("*.clj" "*.cljs")))

(global-set-key (kbd "") 'project-search)

1 thought on “Keybinding for emacs helm to recursively grep certain file extensions in your src directories”

  1. Tak Kunihiro

    Do you know how to set :input externally for `helm-do-grep-1′? I want to configure such like :input (isearch-string) without modifying helm-grep.el.

Leave a Reply