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 ;; org-download
(use-package org-download (use-package org-download
:after org
:demand t
:hook
(org-mode . org-display-inline-images)
:config :config
(when *is-mac* (setq-default org-download-image-dir "./images/"
(setq org-download-image-dir "./images") org-download-heading-lvl nil)
(unless (file-exists-p "./images") (setq org-download-dragndrop t
(make-directory "./images" t)) org-download-method 'directory
(setq org-download-link-format "[[file:%s]]\n") org-image-actual-width nil
(setq org-download-timestamp "%Y%m%d_%H%M%S_") org-download-image-html-width 600
(setq org-download-dragndrop t) org-return-follows-link 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)))
;; org-ql ;; org-ql
(use-package org-ql) (use-package org-ql)