Skip to content

Commit

Permalink
add `helm-c-grep-preferred-ext' defcustom
Browse files Browse the repository at this point in the history
  • Loading branch information
Le Wang committed Oct 17, 2012
1 parent 573fcf5 commit 2ad0f15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm-grep.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ Where '%f' format spec is filename and '%p' is page number"
:group 'helm-grep
:type 'boolean)

(defcustom helm-c-grep-preferred-ext nil
"This file extension will be preselected for grep."
:group 'helm-grep
:type 'string)


;;; Faces
;;
Expand Down Expand Up @@ -635,6 +640,7 @@ in recurse, search being made on `helm-zgrep-file-extension-regexp'."
"Search Only in: "
(helm-c-grep-guess-extensions targets)
:marked-candidates t
:preselect helm-c-grep-preferred-ext
:fc-transformer 'helm-c-adaptive-sort
:buffer "*helm grep exts*"))))
(include-files (and exts
Expand Down

0 comments on commit 2ad0f15

Please sign in to comment.