Skip to content

Instantly share code, notes, and snippets.

View kenmanheimer's full-sized avatar

Ken Manheimer kenmanheimer

View GitHub Profile
@kenmanheimer
kenmanheimer / gist:72c08453b12c0d0a813f
Last active October 12, 2015 16:29 — forked from offby1/gist:1240799
git-grep in emacs
;; From https://gist.github.com/offby1/1240799
;; There's something similar (but fancier) in vc-git.el: vc-git-grep
;; -I means don't search through binary files
;; --no-color, oddly enough, is required to allow emacs to colorize the output
(defcustom git-grep-switches
"git --no-pager grep --extended-regexp -I -n --ignore-case --no-color"