[Dired] Use ‘dired-open’ to also use xdg to open files
This commit is contained in:
parent
df9b5e843d
commit
80ee81b72e
5
init.el
5
init.el
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue