[Dired] Use ‘dired-open’ to also use xdg to open files

This commit is contained in:
Daniel - 2018-11-03 07:33:06 +01:00
parent df9b5e843d
commit 80ee81b72e
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 1 deletions

View File

@ -897,7 +897,10 @@ are assumed to be of the form *.crt."
(require 'dired+)
(when (and (eq system-type 'windows-nt)
(not (package-installed-p 'w32-browser)))
(warn "`w32-browser not installed, dired will have reduced functionality.")))
(warn "`w32-browser not installed, dired will have reduced functionality."))
(when (and (require 'dired-open)
(eq system-type 'gnu/linux))
(bind-key "M-RET" #'dired-open-xdg dired-mode-map)))
;; Gnus support in dired
(add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)