Skip to content

Instantly share code, notes, and snippets.

@tam17aki
Created September 7, 2013 03:46
Show Gist options
  • Save tam17aki/6472678 to your computer and use it in GitHub Desktop.
Save tam17aki/6472678 to your computer and use it in GitHub Desktop.
(setq helm-grep-default-command "grep.pl %p %f")
(setq helm-grep-default-recurse-command
(concat "find %f "
"-type d \\( -name '.svn' -o -name '.git' \\) -prune"
" -o "
"-type f -name \"$(echo -n '%e'"
" | "
"sed -r 's/--include=([^ ]*) --exclude.*/\\1/'"
" | "
"sed 's/\\\\//g')\""
" -print0 | xargs -0 grep.pl %p"))
;; helm-grep-highlight-match を multi-match モードで強制的に起動する
(defadvice helm-grep-highlight-match (around ad-helm-grep-highlight-match activate)
(ad-set-arg 1 t)
ad-do-it)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment