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
This commit is contained in:
NitrogenPointBlue 2023-02-18 15:26:14 -05:00 committed by GitHub
parent 0b921c2d34
commit 818efb263f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -476,7 +476,7 @@ relative to `org-directory', unless it is an absolute path."
(defun +org-init-attachments-h () (defun +org-init-attachments-h ()
"Sets up org's attachment system." "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 org-attach-use-inheritance t) ; inherit properties from parent nodes
;; Autoload all these commands that org-attach doesn't autoload itself ;; Autoload all these commands that org-attach doesn't autoload itself