From 5c76bfce75e1c45496bca3ea86bef58a59322866 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 23 Sep 2019 00:35:57 +0900 Subject: [PATCH] Use mdfind for counsel-locate on a Mac This is the more sensible option as locate isn't configured by default and spotlight is turned on by default. Signed-off-by: Rudi Grinberg --- modules/completion/ivy/config.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index f18aa21fa..f39009d9a 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -226,6 +226,8 @@ evil-ex-specific constructs, so we disable it solely in evil-ex." :config (set-popup-rule! "^\\*ivy-occur" :size 0.35 :ttl 0 :quit nil) + (when IS-MAC + (setq counsel-locate-cmd #'counsel-locate-cmd-mdfind)) (setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)" counsel-describe-function-function #'helpful-callable counsel-describe-variable-function #'helpful-variable