]> git.earman.xyz Git - emacsinit.git/commitdiff
Clean up openwith definitions
authorrearman <rearman@r717.net>
Wed, 15 Oct 2025 18:44:11 +0000 (14:44 -0400)
committerrearman <rearman@r717.net>
Wed, 15 Oct 2025 18:44:11 +0000 (14:44 -0400)
re/re-packages.el

index cb8769b59685d8e735fcdca71bb24db662f159f2..83f815d0441b10e02b7a828c9a5706be7ed72cf1 100644 (file)
   :config
   (openwith-mode t)
   (setq openwith-associations
-       (list (list (openwith-make-extension-regexp
-                    '("xls" "xlsx" "doc" "docx" "ppt" "pptx" "odt" "ods" "odg" "odp"))
+       (list (list "\\.\\(\\(ppt\\|xls\\|doc\\)x?\\|ods[gpst]\\)"
                    "libreoffice"
-                   '(file))  ; Windows falls back to system default
-             (list (openwith-make-extension-regexp
-                    '("adpro"))
-                   "ProductivitySuite"
                    '(file))
-             (list (openwith-make-extension-regexp
-                    '("rss"))
-                   "rs500"
-                   '(file))
-             (list (openwith-make-extension-regexp
-                    '("lnk"))
-                   "explorer"
-                   '(file))
-             (list (openwith-make-extension-regexp
-                    '("dwg"))
-                   "dwgviewr"
-                   '(file))
-             (list (openwith-make-extension-regexp
-                    '("pdf"))
-                   "zathura"
-                   '(file)))))  ; Windows falls back to default program
+             (list "\\.\\(exe\\|lnk\\)" "explorer" '(file))
+             (list "\\.adpro" "ProductivitySuite" '(file))
+             (list "\\.rss" "rs500" '(file))
+             (list "\\.dwg" "dwgviewr" '(file))
+             (list "\\.pdf" "zathura" '(file)))))
 
 (use-package auctex)