]> git.earman.xyz Git - emacsinit.git/commitdiff
Add openwith assoc. for non-windows
authorrearman <rearman@r717.net>
Mon, 16 Jan 2023 13:06:39 +0000 (08:06 -0500)
committerrearman <rearman@r717.net>
Mon, 16 Jan 2023 13:06:39 +0000 (08:06 -0500)
init.el

diff --git a/init.el b/init.el
index 4bc1443cece18777f1f340440ee729bfa02e36df..d8bab1d0f6da63ac2f47c0a9d161926d7fe2d88b 100644 (file)
--- a/init.el
+++ b/init.el
                                         ("\\.docx\\'" "word" (file))
                                         ("\\.adpro\\'" "PoductivitySuite" (file))))
           (load (expand-file-name "win-defuns.el" user-emacs-directory)))
-  nil)
+  (progn (setq openwith-associations '(("\\.pdf\\'" "zathura" (file))
+                                      ("\\.xls\\'" "libreoffice" (file))
+                                      ("\\.xlsx\\'" "libreoffice" (file))
+                                      ("\\.doc\\'" "libreoffice" (file))
+                                      ("\\.docx\\'" "libreoffice" (file))))))
 
 (custom-set-variables
  ;; custom-set-variables was added by Custom.