mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
elisp: update macro fontification rules
This commit is contained in:
@@ -81,19 +81,19 @@
|
||||
(message "Running: %s" command)
|
||||
(shell-command command)))
|
||||
|
||||
(defmacro open-with! (id &optional app dir)
|
||||
(defmacro def-open-with! (id &optional app dir)
|
||||
`(defun ,(intern (format "os-%s" id)) ()
|
||||
(interactive)
|
||||
(narf-open-with ,app ,dir)))
|
||||
|
||||
(open-with! open-in-default-program)
|
||||
(open-with! open-in-browser "Google Chrome")
|
||||
(open-with! reveal "Finder" default-directory)
|
||||
(open-with! reveal-project "Finder" (narf/project-root))
|
||||
(open-with! upload "Transmit")
|
||||
(open-with! upload-folder "Transmit" default-directory)
|
||||
(open-with! send-to-launchbar "LaunchBar")
|
||||
(open-with! send-project-to-launchbar "LaunchBar" (narf/project-root))
|
||||
(def-open-with! open-in-default-program)
|
||||
(def-open-with! open-in-browser "Google Chrome")
|
||||
(def-open-with! reveal "Finder" default-directory)
|
||||
(def-open-with! reveal-project "Finder" (narf/project-root))
|
||||
(def-open-with! upload "Transmit")
|
||||
(def-open-with! upload-folder "Transmit" default-directory)
|
||||
(def-open-with! send-to-launchbar "LaunchBar")
|
||||
(def-open-with! send-project-to-launchbar "LaunchBar" (narf/project-root))
|
||||
|
||||
(defun os-switch-to-term ()
|
||||
(interactive)
|
||||
|
Reference in New Issue
Block a user