[emacs] Add openwith so I can add mp3s to org

This commit is contained in:
2020-09-13 19:29:41 -04:00
parent 6b834df161
commit 4ec70baf20
3 changed files with 21 additions and 4 deletions

View File

@ -475,3 +475,21 @@ Here we are trying to auto-translate Word and PDF files to be viewed in Emacs.
(setq lsp-enable-links nil)
#+END_SRC
* Openwith
#+BEGIN_SRC emacs-lisp
(when (require 'openwith nil 'noerror)
(setq openwith-associations
(list
(list (openwith-make-extension-regexp
'("mpg" "mpeg" "mp3" "mp4"
"avi" "wmv" "wav" "mov" "flv"
"ogm" "ogg" "mkv"))
"vlc"
'(file))
(list (openwith-make-extension-regexp
'("pdf" "ps" "ps.gz" "dvi"))
"zathura"
'(file))
))
(openwith-mode 1))
#+END_SRC