mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Remove f.el references
This commit is contained in:
@ -4,12 +4,13 @@
|
||||
(defun +macos-open-with (&optional app-name path)
|
||||
"Send PATH to APP-NAME on OSX."
|
||||
(interactive)
|
||||
(let* ((path (f-full (replace-regexp-in-string
|
||||
"'" "\\'"
|
||||
(or path (if (eq major-mode 'dired-mode)
|
||||
(dired-get-file-for-visit)
|
||||
(buffer-file-name)))
|
||||
nil t)))
|
||||
(let* ((path (expand-file-name
|
||||
(replace-regexp-in-string
|
||||
"'" "\\'"
|
||||
(or path (if (eq major-mode 'dired-mode)
|
||||
(dired-get-file-for-visit)
|
||||
(buffer-file-name)))
|
||||
nil t)))
|
||||
(command (format "open %s"
|
||||
(if app-name
|
||||
(format "-a %s '%s'" (shell-quote-argument app-name) path)
|
||||
|
Reference in New Issue
Block a user