I have org-journal entries which I'd like to link to images that are also stored alongside them in the filesystem. Ideally this would happen automatically when an image is dragged-and-dropped on the buffer.

Org-download seems to be a good fit for this application. I can configure org-download to download and link images into regular org files, but I cannot achieve the same for org-journal files.

I received some suggestions for this on Reddit. For normal org-mode files, from my init.el:

(use-package org-download
  :ensure t
  :defer t
  ;; Add handlers for drag-and-drop when Org is loaded.
    (with-eval-after-load 'org

I would expect this to also work for org-journal files, since they are also org-mode files. But it does not, so I've tried adjusting the configuration:

(use-package org-download
  :ensure t
  :defer t
  :after (:any 'org 'org-journal)

This also does not work. Next I tried manually instigating with M-: (org-download-enable) while working on an org-journal entry. That command returns nil and dragging and dropping images still does not work.

At this point I'm not sure how to proceed. I'm new to configuring emacs, and likely am missing something simple. Any suggestions would be appreciated.


In case you care about this, I found this bug and opened an issue: https://github.com/bastibe/org-journal/issues/236

Basically, org-download checks that the major mode is org-mode, but org-journal changes that to org-journal-mode.

  • Thank you @dangirsh, that sounds like it might be the cause of the trouble I was having!
    – ctag
    May 22 '20 at 16:53
  • This is now fixed! Pull org-download.
    – dangirsh
    May 24 '20 at 3:43
  • @dangrish, thank you! I checked and it is working for me now!
    – ctag
    May 24 '20 at 21:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.