Allow sub-modes of dired (e.g. ranger)

This commit is contained in:
Eivind Fonn 2016-08-17 20:33:56 +02:00
parent 629eb61149
commit c0950f6421
1 changed files with 1 additions and 1 deletions

View File

@ -721,7 +721,7 @@ containing the current file by the default explorer."
(interactive "P")
(if arg
(spacemacs//open-in-external-app (expand-file-name default-directory))
(let ((file-path (if (eq major-mode 'dired-mode)
(let ((file-path (if (derived-mode-p 'dired-mode)
(dired-get-file-for-visit)
buffer-file-name)))
(if file-path