: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)