From: Joost Kremers <joostkremers@fastmail.fm>
To: emacs-orgmode@gnu.org
Subject: Re: ivy-bibtex and orgmode inserts ebib: link
Date: Fri, 22 Mar 2019 13:06:09 +0100 [thread overview]
Message-ID: <87y357i05q.fsf@fastmail.fm> (raw)
In-Reply-To: <87tvfvw3jc.fsf@gmail.com>
On Fri, Mar 22 2019, Eric S Fraga wrote:
> I am going down a rabbit hole here...
>
> Short question: how can I add a new link type to org? It used
> to be
> that we would use ~org-add-link-type~ but this is
> deprecated. Fine. The documentation points to
> ~org-link-set-parameters~ instead but this can only set the
> parameters
> for known links. Known links seem to be defined by a complex
> regex in
> ~org-link-types-re~.
>
> What is the replacement for ~org-add-link-type~ in the latest
> version of
> org, if any? Or do I have to both add to the regex and set link
> parameters separately?
I'm pretty sure the regex is created automatically. I only needed
to do this:
(org-link-set-parameters "ebib" :follow #'org-ebib-open :store
#'org-ebib-store-link)
And then define the functions `org-ebib-open` and
`org-ebib-store-link`. (Cf.
<https://github.com/joostkremers/ebib/blob/master/org-ebib.el>).
And yes, I apologize for the irony. ;-)
--
Joost Kremers
Life has its moments
next prev parent reply other threads:[~2019-03-22 12:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-22 10:39 ivy-bibtex and orgmode inserts ebib: link Eric S Fraga
2019-03-22 11:10 ` Eric S Fraga
2019-03-22 11:29 ` Eric S Fraga
2019-03-22 11:50 ` Nicolas Goaziou
2019-03-22 11:59 ` John Kitchin
2019-03-22 12:06 ` Joost Kremers [this message]
2019-03-22 12:22 ` Eric S Fraga
2019-03-22 12:14 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y357i05q.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.