completion/helm: add mdfind support to helm-locate

This commit is contained in:
Henrik Lissner
2019-09-22 13:33:26 -04:00
parent 87c6e8900c
commit 19ef103392

View File

@ -159,7 +159,12 @@ be negative.")
;;;###package helm-locate ;;;###package helm-locate
(defvar helm-generic-files-map (make-sparse-keymap)) (defvar helm-generic-files-map (make-sparse-keymap))
(after! helm-locate (set-keymap-parent helm-generic-files-map helm-map)) (after! helm-locate
(when (and IS-MAC
(null helm-locate-command)
(executable-find "mdfind"))
(setq helm-locate-command "mdfind -name %s"))
(set-keymap-parent helm-generic-files-map helm-map))
;;;###package helm-projectile ;;;###package helm-projectile