commit 19e166f0a8c539b4144cfbc614309d47a9b2a9b7
parent 7ca67dfa963c95c607dc6126004c5df49a4089c5
Author: Mark A. Hershberger <mah@nichework.com>
Date: Sat, 23 Apr 2022 11:21:25 -0400
Also make available for derived modes
Fixes #198
Fixes #197
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el
@@ -506,7 +506,8 @@ It's inserted before the image link and is used to annotate it.")
(interactive "sUrl: ")
(let* ((link-and-ext (org-download--parse-link link))
(filename
- (cond ((and (memq major-mode '(org-mode org-journal-mode)) (eq org-download-method 'attach))
+ (cond ((and (derived-mode-p 'org-mode)
+ (eq org-download-method 'attach))
(let ((org-download-image-dir (org-attach-dir t))
org-download-heading-lvl)
(apply #'org-download--fullname link-and-ext)))