From e4191a944baf8e2ccb09e8348062ac095e568dce Mon Sep 17 00:00:00 2001 From: Ting Zhou Date: Thu, 4 Oct 2018 11:11:08 -0700 Subject: [PATCH] fix +macos/open-in-default-project under ranger-mode --- modules/tools/macos/autoload.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tools/macos/autoload.el b/modules/tools/macos/autoload.el index d4ff371aa..05b415fa3 100644 --- a/modules/tools/macos/autoload.el +++ b/modules/tools/macos/autoload.el @@ -7,7 +7,7 @@ (let* ((path (expand-file-name (replace-regexp-in-string "'" "\\'" - (or path (if (eq major-mode 'dired-mode) + (or path (if (derived-mode-p 'dired-mode) (dired-get-file-for-visit) (buffer-file-name))) nil t)))