Save org-download images to an assets directory

This commit is contained in:
coolneng 2022-10-01 01:00:57 +02:00
parent 3ff8958161
commit e7c13e125d
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 3 deletions

View File

@ -116,10 +116,9 @@
(if (org-clocking-p) (if (org-clocking-p)
(format "%s" (org-duration-from-minutes (org-clock-get-clocked-time))) (format "%s" (org-duration-from-minutes (org-clock-get-clocked-time)))
""))) "")))
;; Save org-download images to ~/.cache ;; Save org-download images to an assets directory
(after! org-download (after! org-download
(setq org-download-image-dir "~/.cache/org-download" (setq org-download-image-dir "assets/"
org-attach-id-dir "~/.cache/org-attach"
org-attach-auto-tag nil)) org-attach-auto-tag nil))
;; Show images by default with a limited width ;; Show images by default with a limited width
(setq org-startup-with-inline-images t (setq org-startup-with-inline-images t