From 818efb263fdb5f564e9e37f79bce17d50b559888 Mon Sep 17 00:00:00 2001 From: NitrogenPointBlue <110332643+NitrogenPointBlue@users.noreply.github.com> Date: Sat, 18 Feb 2023 15:26:14 -0500 Subject: [PATCH] fix(org): update org-attach-store-link-p default Org-mode's behavior when org-attach-store-link-p is 't' recently changed. When the value of org-attach-store-link-p is 't' org-store-link now suggests a 'file:' link to the attachment's original location. Setting the value to 'attached' instead suggests an 'attachment:' link utilizing the attachment directory. Ref: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0d60013f0e3980fab959542eeb171ab9a02b450c Fix: #6952 --- modules/lang/org/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 2aab1efca..a417290bf 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -476,7 +476,7 @@ relative to `org-directory', unless it is an absolute path." (defun +org-init-attachments-h () "Sets up org's attachment system." - (setq org-attach-store-link-p t ; store link after attaching files + (setq org-attach-store-link-p 'attached ; store link after attaching files org-attach-use-inheritance t) ; inherit properties from parent nodes ;; Autoload all these commands that org-attach doesn't autoload itself