From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ivy-bibtex and orgmode inserts ebib: link Date: Fri, 22 Mar 2019 12:50:54 +0100 Message-ID: <87bm23p1pd.fsf@nicolasgoaziou.fr> References: <877ecrxkfo.fsf@gmail.com> <87y357w4f4.fsf@gmail.com> <87tvfvw3jc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7ItE-0004aD-Cb for emacs-orgmode@gnu.org; Fri, 22 Mar 2019 08:03:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7IhT-0001Yt-Mb for emacs-orgmode@gnu.org; Fri, 22 Mar 2019 07:51:04 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:41779) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7IhT-0001Vc-4o for emacs-orgmode@gnu.org; Fri, 22 Mar 2019 07:51:03 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay12.mail.gandi.net (Postfix) with ESMTPSA id F1D76200019 for ; Fri, 22 Mar 2019 11:50:59 +0000 (UTC) In-Reply-To: <87tvfvw3jc.fsf@gmail.com> (Eric S. Fraga's message of "Fri, 22 Mar 2019 11:29:27 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, Eric S Fraga 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