Make mdfind the default backend for helm-locate

This commit is contained in:
Andre0991 2015-11-04 14:26:26 -02:00 committed by Eivind Fonn
parent 9714644a8f
commit 7176a49877

View file

@ -5,6 +5,7 @@
pbcopy
launchctl
reveal-in-osx-finder
helm
))
(when (spacemacs/system-is-mac)
@ -71,3 +72,13 @@
(use-package reveal-in-osx-finder
:if (spacemacs/system-is-mac)
:commands reveal-in-osx-finder))
(defun osx/pre-init-helm ()
;; Use `mdfind' instead of `locate'.
(when (spacemacs/system-is-mac)
(spacemacs|use-package-add-hook helm
:post-config
;; Disable fuzzy matchting to make mdfind work with helm-locate
;; https://github.com/emacs-helm/helm/issues/799
(setq helm-locate-fuzzy-match nil)
(setq helm-locate-command "mdfind -name %s %s"))))