[emacs] Add openwith so I can add mp3s to org
This commit is contained in:
@ -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)
|
(setq lsp-enable-links nil)
|
||||||
#+END_SRC
|
#+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
|
||||||
|
|||||||
@ -9,10 +9,9 @@
|
|||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; 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
|
'(package-selected-packages
|
||||||
(quote
|
'(openwith caddyfile-mode wordgen w3m vterm-toggle ponylang-mode jq-mode jq-format hackernews elfeed-protocol dired-ranger csv-mode csv counsel-jq blacken)))
|
||||||
(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
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
|||||||
@ -54,7 +54,7 @@
|
|||||||
(package! magit-circleci)
|
(package! magit-circleci)
|
||||||
;(package! smog)
|
;(package! smog)
|
||||||
(package! wordgen)
|
(package! wordgen)
|
||||||
;(package! smog)
|
(package! openwith)
|
||||||
;; slack ... okay one more time
|
;; slack ... okay one more time
|
||||||
(package! slack)
|
(package! slack)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user