elisp: update macro fontification rules
This commit is contained in:
parent
030cde12aa
commit
5b4117fc11
2 changed files with 15 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue