diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-24 03:42:11 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-24 03:42:11 +0530 |
commit | aedab997d32d162ac18b34cf0f540c2b785a686d (patch) | |
tree | 2921cbb44905d47c5d73e434b578c6db04376283 /Emacs | |
parent | 617b849be18420eeb32e599acbfd63ca0bdee020 (diff) | |
download | dotfiles-aedab997d32d162ac18b34cf0f540c2b785a686d.tar.gz dotfiles-aedab997d32d162ac18b34cf0f540c2b785a686d.tar.bz2 dotfiles-aedab997d32d162ac18b34cf0f540c2b785a686d.zip |
(Emacs/app)+mpv package
Only really useful for integration in org-mode
Diffstat (limited to 'Emacs')
-rw-r--r-- | Emacs/.config/emacs/app.org | 16 |
1 files changed, 16 insertions, 0 deletions
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 |