[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] ivy-bibtex and orgmode inserts ebib: link
From: |
Nicolas Goaziou |
Subject: |
Re: [O] ivy-bibtex and orgmode inserts ebib: link |
Date: |
Fri, 22 Mar 2019 12:50:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Eric S Fraga <address@hidden> writes:
> 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?
>From master, you can inspect any library prefixed with "ol-". For
example, "ol-info.el" uses this:
(org-link-set-parameters "info"
:follow #'org-info-open
:export #'org-info-export
:store #'org-info-store-link)
and defines each function thereafter.
Welcome to the rabbit ol ;)
Regards,
--
Nicolas Goaziou