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 <rudi.grinberg@gmail.com>
This commit is contained in:
parent
86928e425b
commit
5c76bfce75
1 changed files with 2 additions and 0 deletions
|
@ -226,6 +226,8 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
||||||
:config
|
:config
|
||||||
(set-popup-rule! "^\\*ivy-occur" :size 0.35 :ttl 0 :quit nil)
|
(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?\\)"
|
(setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)"
|
||||||
counsel-describe-function-function #'helpful-callable
|
counsel-describe-function-function #'helpful-callable
|
||||||
counsel-describe-variable-function #'helpful-variable
|
counsel-describe-variable-function #'helpful-variable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue