From aedab997d32d162ac18b34cf0f540c2b785a686d Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 24 Apr 2024 03:42:11 +0530 Subject: (Emacs/app)+mpv package Only really useful for integration in org-mode --- Emacs/.config/emacs/app.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/app.org b/Emacs/.config/emacs/app.org index 1cda909..415019c 100644 --- a/Emacs/.config/emacs/app.org +++ b/Emacs/.config/emacs/app.org @@ -882,3 +882,19 @@ and integrates slickly into image-dired. Of course, erc-nick "oreodave" erc-buffer-display "current")) #+end_src +* MPV +Basically a porcelain over mpv via the IPC interface. +#+begin_src emacs-lisp +(use-package mpv + :defer t + :straight t + :config + (with-eval-after-load "org" + (defun org-mpv-complete-link (&optional arg) + (replace-regexp-in-string + "file:" "mpv:" + (org-link-complete-file arg) + t t)) + (org-link-set-parameters "mpv" + :follow #'mpv-play :complete #'org-mpv-complete-link))) +#+end_src -- cgit v1.2.3-13-gbd6f