diff --git a/emacs/.config/doom/config.org b/emacs/.config/doom/config.org index caa1cdf..b3b92fe 100644 --- a/emacs/.config/doom/config.org +++ b/emacs/.config/doom/config.org @@ -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 diff --git a/emacs/.config/doom/custom.el b/emacs/.config/doom/custom.el index f613da2..4428e15 100644 --- a/emacs/.config/doom/custom.el +++ b/emacs/.config/doom/custom.el @@ -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. diff --git a/emacs/.config/doom/packages.el b/emacs/.config/doom/packages.el index db42fc4..e31e50a 100644 --- a/emacs/.config/doom/packages.el +++ b/emacs/.config/doom/packages.el @@ -54,7 +54,7 @@ (package! magit-circleci) ;(package! smog) (package! wordgen) -;(package! smog) +(package! openwith) ;; slack ... okay one more time (package! slack)