Skip to content

Instantly share code, notes, and snippets.

@beothorn
Created January 24, 2018 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beothorn/fbba2753e77d20f04650cb13a3918ad8 to your computer and use it in GitHub Desktop.
Save beothorn/fbba2753e77d20f04650cb13a3918ad8 to your computer and use it in GitHub Desktop.
Configuring cygwin find/grep on windows for spacemacs
;;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