commit 7ca67dfa963c95c607dc6126004c5df49a4089c5
parent 69c57bd5199e18b38d29757fc27af6dca1b4876d
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date: Tue, 6 Sep 2022 19:53:50 +0200
org-download.el (org-download-image): Add org-journal-mode
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el
@@ -506,7 +506,7 @@ 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 (eq major-mode 'org-mode) (eq org-download-method 'attach))
+ (cond ((and (memq major-mode '(org-mode org-journal-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)))