commit c8be2611786d1d8d666b7b4f73582de1093f25ac
parent 900b7b6984d8fcfebbd3620152730228ce6468aa
Author: Mariano Mollo <marianomollo@protonmail.ch>
Date: Wed, 29 Dec 2021 16:22:03 +0100
Generate id in heading when attaching
Closes #168
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/org-download.el b/org-download.el
@@ -418,6 +418,7 @@ The screenshot tool is determined by `org-download-screenshot-method'."
"pngpaste %s"
(user-error
"Please install the \"pngpaste\" program from Homebrew."))))))
+ (org-id-get-create)
(org-download-screenshot basename)))
(declare-function org-attach-dir "org-attach")