fix: require tramp to avoid void function error `tramp-tramp-file-p'
This commit is contained in:
1 file changed
+1
@@ -159,6 +159,7 @@ Directory entries are excluded from the returned list."
|
|||||||
|
|
||||||
(defun creature/play-with-mpv (filename)
|
(defun creature/play-with-mpv (filename)
|
||||||
"Play local media FILENAME with mpv, including Blu-ray directories and images."
|
"Play local media FILENAME with mpv, including Blu-ray directories and images."
|
||||||
|
(require 'tramp)
|
||||||
(cond
|
(cond
|
||||||
((not (executable-find "mpv"))
|
((not (executable-find "mpv"))
|
||||||
(user-error "mpv: executable not found"))
|
(user-error "mpv: executable not found"))
|
||||||
|
|||||||
Reference in new issue
Block a user