Remove f.el references
This commit is contained in:
parent
7ed243a398
commit
a0305418ae
6 changed files with 15 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue