From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Nicolodi Subject: Re: org-link interface Date: Thu, 13 Oct 2016 10:23:28 -0600 Message-ID: <44bd1778-3b7f-4507-c949-7825552cb871@grinta.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buinG-0002jS-0n for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 12:23:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buinA-0007B4-Pu for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 12:23:41 -0400 Received: from zed.grinta.net ([109.74.203.128]:58992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buinA-00078T-GX for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 12:23:36 -0400 In-Reply-To: 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: John Kitchin , emacs-orgmode@gnu.org On 10/13/16 8:14 AM, John Kitchin wrote: > In org8, this is not that easy to do, but not impossible. > > Why do not you want to use [[foo:bar][bar]]? Hi John, I'm fine using [[foo:bar][bar]], but it is much longer to type. Slightly changing my question: there is a way to instruct org-insert-link to derive a default value for the description from the path? I had a look at the code, and it does not seem so. Thanks! Cheers, Daniele > Daniele Nicolodi writes: > >> Hello, >> >> I would like to add a new link type to org-mode. Following the example >> in the manual it is a very easy task. However I would like to customize >> how the link is visualized, specifically I would like a link like >> "[[foo:bar]]" to be visualized simply as "bar" where the protocol type >> has been hidden (same effect I would obtain with a link in the form >> "[[foo:bar][bar]]". >> >> Is it possible to hook somehow into org-mode to have that transformation >> done, or there is an easy way to accomplish that? >> >> Thank you! >> >> Cheers, >> Daniele > >