Created
January 24, 2018 19:10
-
-
Save beothorn/fbba2753e77d20f04650cb13a3918ad8 to your computer and use it in GitHub Desktop.
Configuring cygwin find/grep on windows for spacemacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;Using cygwin | |
(setq find-program "\"C:/cygwin64/bin/find.exe\"") | |
(setq grep-program "\"C:/cygwin64/bin/grep.exe\"") | |
;; Prevent issues with the Windows null device (NUL) | |
;; when using cygwin find with rgrep. | |
(defadvice grep-compute-defaults (around grep-compute-defaults-advice-null-device) | |
"Use cygwin's /dev/null as the null-device." | |
(let ((null-device "/dev/null")) | |
ad-do-it)) | |
(ad-activate 'grep-compute-defaults) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment