[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

View File

@ -9,10 +9,9 @@
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(doom-big-font-mode t)
'(doom-big-font-mode t t)
'(package-selected-packages
(quote
(caddyfile-mode wordgen w3m vterm-toggle ponylang-mode jq-mode jq-format hackernews elfeed-protocol dired-ranger csv-mode csv counsel-jq blacken))))
'(openwith caddyfile-mode wordgen w3m vterm-toggle ponylang-mode jq-mode jq-format hackernews elfeed-protocol dired-ranger csv-mode csv counsel-jq blacken)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

View File

@ -54,7 +54,7 @@
(package! magit-circleci)
;(package! smog)
(package! wordgen)
;(package! smog)
(package! openwith)
;; slack ... okay one more time
(package! slack)