mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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.
This commit is contained in:
@ -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)) ()
|
||||
|
Reference in New Issue
Block a user