Configuring the org-download save directory
When I drag and drop an image into Emacs, I want the attached file to end up in
./img/YYYY/. This is how I tried configuring org-download
in my setup (I use Doom Emacs):
For some reason,
org-download-method was being reset from
'attach after loading, and this broke things. I thought maybe I needed to set the variables after org-download was loaded, so I did this:
That didn’t work. At startup I was seeing this error:
Error (org-mode-hook): Error running hook “org-fancy-priorities-mode” because: (void-variable org-download-image-dir)
Huh. I guess not everything can be set after org-download, so I tried only setting
This worked. The other settings are done in the
(after! org block.
It feels like I have to fight Doom too often, but the details and refinement of Doom is worth the trouble.