From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Kremers Subject: Re: ivy-bibtex and orgmode inserts ebib: link Date: Fri, 22 Mar 2019 13:06:09 +0100 Message-ID: <87y357i05q.fsf@fastmail.fm> References: <877ecrxkfo.fsf@gmail.com> <87y357w4f4.fsf@gmail.com> <87tvfvw3jc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7IwH-0007hK-Rp for emacs-orgmode@gnu.org; Fri, 22 Mar 2019 08:06:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7IwG-0006Bu-Pp for emacs-orgmode@gnu.org; Fri, 22 Mar 2019 08:06:21 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:53327) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7IwE-0005ye-1Z for emacs-orgmode@gnu.org; Fri, 22 Mar 2019 08:06:20 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 247CF216AC for ; Fri, 22 Mar 2019 08:06:12 -0400 (EDT) Received: from IdeaPad.fastmail.com (ip5f5ac90e.dynamic.kabel-deutschland.de [95.90.201.14]) by mail.messagingengine.com (Postfix) with ESMTPA id 7D5F8E452E for ; Fri, 22 Mar 2019 08:06:11 -0400 (EDT) In-reply-to: <87tvfvw3jc.fsf@gmail.com> 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 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. ). And yes, I apologize for the irony. ;-) -- Joost Kremers Life has its moments