emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inserting links stored in `org-store-link-plist`


From: Max Nikulin
Subject: Re: Inserting links stored in `org-store-link-plist`
Date: Fri, 25 Feb 2022 23:25:09 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 25/02/2022 04:11, Alejandro Pérez Carballo wrote:
Thanks for your reply. I can store the ID calling `org-store-link'
if `org-id-link-to-org-use-id' is set to a non-nil value. But I wanted to be able to have `org-id-link-to-org-use-id' set to nil and
also have a function to store an ID link. (I make use of ID only in
certain files and try to avoid them otherwise, preferring the default
method of using a link to the file with a search string pointing to
the current line in most cases.)

I have no idea what interface `org-store-link' should have to be really flexible and convenient.

Have you considered file- (or directory-) local variables?
info "(emacs) Specifying File Variables"
https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html

# Local Variables:
# org-id-link-to-org-use-id: use-existing
# End:

at the end of specific files.

I had expected that `org-insert-link' would be able to retrieve links stored both with `org-store-link' and `org-id-store-link'—it
seemed like a natural assumption, perhaps because I do not know of
other reasons for having an interactive function that stores links
aside from being able to insert them later?
I can not say that I am happy with implementation of `org-store-link' or that I fully understand ideas behind ol.el. I just found an example of `org-id-store-link' usage:
https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/org-contacts.el#L1171
see definition of "org-contact" link a bit above as well.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]