From 212bdf8ae5c6dad484274930a1f07d80a05bc150 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 23 Sep 2019 17:47:58 +0900 Subject: [PATCH 1/2] Set locate-command in tools macos It should be mdfind since spot light is on by default Signed-off-by: Rudi Grinberg --- modules/tools/macos/autoload.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/tools/macos/autoload.el b/modules/tools/macos/autoload.el index 9ffbd5b57..b43e49191 100644 --- a/modules/tools/macos/autoload.el +++ b/modules/tools/macos/autoload.el @@ -18,6 +18,8 @@ (message "Running: %s" command) (shell-command command))) +(setq locate-command "mdfind") + ;;;###autoload (defmacro +macos--open-with (id &optional app dir) `(defun ,(intern (format "+macos/%s" id)) () From 2dfa690f830e22ac44087a09f6fc47db156f5b37 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 23 Sep 2019 13:39:53 -0400 Subject: [PATCH 2/2] Autoload new locate-command default This makes it much easier to customize, since it will always be set early in the startup process, rather than unpredictably, whenever this autoloads file is loaded. --- modules/tools/macos/autoload.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/tools/macos/autoload.el b/modules/tools/macos/autoload.el index b43e49191..0aa9f8b53 100644 --- a/modules/tools/macos/autoload.el +++ b/modules/tools/macos/autoload.el @@ -1,5 +1,8 @@ ;;; tools/macos/autoload.el -*- lexical-binding: t; -*- +;;;###autoload +(setq locate-command "mdfind") + ;;;###autoload (defun +macos-open-with (&optional app-name path) "Send PATH to APP-NAME on OSX." @@ -18,8 +21,6 @@ (message "Running: %s" command) (shell-command command))) -(setq locate-command "mdfind") - ;;;###autoload (defmacro +macos--open-with (id &optional app dir) `(defun ,(intern (format "+macos/%s" id)) ()