refactor: simplify org-download configuration

This commit is contained in:
2026-06-09 06:26:19 +08:00
parent 83c0f153f3
commit a524b13444

View File

@@ -112,20 +112,18 @@
;; org-download
(use-package org-download
:after org
:demand t
:hook
(org-mode . org-display-inline-images)
:config
(when *is-mac*
(setq org-download-image-dir "./images")
(unless (file-exists-p "./images")
(make-directory "./images" t))
(setq org-download-link-format "[[file:%s]]\n")
(setq org-download-timestamp "%Y%m%d_%H%M%S_")
(setq org-download-dragndrop t)
(setq org-image-actual-width nil)
(setq org-download-image-html-width 600)
(add-hook 'org-mode-hook 'org-display-inline-images))
(with-eval-after-load 'org
(require 'org-download)
(setq org-return-follows-link t)))
(setq-default org-download-image-dir "./images/"
org-download-heading-lvl nil)
(setq org-download-dragndrop t
org-download-method 'directory
org-image-actual-width nil
org-download-image-html-width 600
org-return-follows-link t))
;; org-ql
(use-package org-ql)