[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 46b9769a02 2/4: org-attach-store-link-p: Change def
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 46b9769a02 2/4: org-attach-store-link-p: Change default value to 'attached |
Date: |
Thu, 25 Jan 2024 09:58:21 -0500 (EST) |
branch: externals/org
commit 46b9769a02fe83dab043fffb69304669a733c4ef
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
org-attach-store-link-p: Change default value to 'attached
* lisp/org-attach.el (org-attach-store-link-p): Change the default
value.
* etc/ORG-NEWS (The default value of ~org-attach-store-link-p~ is now
~attached~): Announce the change.
---
etc/ORG-NEWS | 5 +++++
lisp/org-attach.el | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 50c3a90a19..32dd90f81a 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -386,6 +386,11 @@ The change is breaking when ~org-use-property-inheritance~
is set to ~t~.
The =TEST= parameter is better served by Emacs debugging tools.
** New and changed options
+*** The default value of ~org-attach-store-link-p~ is now ~attached~
+
+Now, after attaching a file, =[[attach:...]]= link to the attached file
+is stored. It can later be inserted using =M-x org-insert-link=.
+
*** ~org-link-descriptive~ can now be set per-buffer via =#+STARTUP= options
In addition to ~org-link-descriptive~ custom option, link display can
diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index d5e5ac06d5..c2b2e1fb2c 100644
--- a/lisp/org-attach.el
+++ b/lisp/org-attach.el
@@ -142,7 +142,7 @@ Selective means to respect the inheritance setting in
(const :tag "Inherit parent node attachments" t)
(const :tag "Respect org-use-property-inheritance" selective)))
-(defcustom org-attach-store-link-p nil
+(defcustom org-attach-store-link-p 'attached
"Non-nil means store a link to a file when attaching it.
When t, store the link to original file location.
When `file', store link to the attached file location.