From 1228d6cef00ab2a0c60ce3b871038d5f008a4e17 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 7 Sep 2018 18:07:20 +0200 Subject: [PATCH] [Dired] Let Windows decide how to open files --- init.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/init.el b/init.el index c1abe53..b282b28 100644 --- a/init.el +++ b/init.el @@ -789,12 +789,7 @@ are assumed to be of the form *.crt." (add-to-list 'dired-latex-unclean-extensions extension)) (if on-windows - (setq dired-guess-shell-alist-user - '(("\\.pdf\\'" "cmd /c") - ("\\.docx?\\'" "cmd /c") - ("\\.pptx?\\'" "cmd /c") - ("\\.xlsx?\\'" "cmd /c") - ("\\.one\\'" "cmd /c"))) + (setq dired-guess-shell-alist-user '((".*" "cmd /c"))) (setq dired-guess-shell-alist-user '(("\\.pdf\\'" "evince") ("\\.ps\\'" "evince")