[Dired] Always use same applications to open files
This commit is contained in:
parent
2bc02703eb
commit
60a5b4572c
24
init.el
24
init.el
|
@ -1788,19 +1788,17 @@ With given ARG, display files in `db/important-document-path’."
|
|||
dired-isearch-filenames 'dwim
|
||||
dired-auto-revert-buffer t)
|
||||
|
||||
(if on-windows
|
||||
(setq dired-guess-shell-alist-user '((".*" "cmd /c")))
|
||||
(setq dired-guess-shell-alist-user
|
||||
'(("\\.pdf\\'" "evince")
|
||||
("\\.ps\\'" "evince")
|
||||
("\\.\\(?:djvu\\|eps\\)\\'" "evince")
|
||||
("\\.\\(?:jpg\\|jpeg\\|png\\|gif\\|xpm\\)\\'" "eog")
|
||||
("\\.\\(?:xcf\\)\\'" "gimp")
|
||||
("\\.\\(?:mp4\\|mkv\\|avi\\|flv\\|ogv\\|webm\\)\\(?:\\.part\\)?\\'"
|
||||
"vlc")
|
||||
("\\.\\(?:mp3\\|flac\\|ogg\\)\\'" "mplayer")
|
||||
("\\.html?\\'" "firefox")
|
||||
("\\.docx?\\'" "loffice"))))
|
||||
(setq dired-guess-shell-alist-user
|
||||
'(("\\.pdf\\'" "evince")
|
||||
("\\.ps\\'" "evince")
|
||||
("\\.\\(?:djvu\\|eps\\)\\'" "evince")
|
||||
("\\.\\(?:jpg\\|jpeg\\|png\\|gif\\|xpm\\)\\'" "eog")
|
||||
("\\.\\(?:xcf\\)\\'" "gimp")
|
||||
("\\.\\(?:mp4\\|mkv\\|avi\\|flv\\|ogv\\|webm\\)\\(?:\\.part\\)?\\'"
|
||||
"vlc")
|
||||
("\\.\\(?:mp3\\|flac\\|ogg\\)\\'" "mplayer")
|
||||
("\\.html?\\'" "firefox")
|
||||
("\\.docx?\\'" "loffice")))
|
||||
|
||||
(when on-windows
|
||||
(setq directory-free-space-program nil)))
|
||||
|
|
Loading…
Reference in New Issue