From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: Re: set different colors for different link types Date: Sat, 30 Apr 2011 08:40:35 +0900 Message-ID: <4DBB4C73.9020803@gmail.com> References: <4DBA7A0B.8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFxIf-0003LL-2B for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 19:40:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFxIe-0005nh-0m for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 19:40:41 -0400 Received: from mail-px0-f171.google.com ([209.85.212.171]:37954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFxId-0005nb-Pz for emacs-orgmode@gnu.org; Fri, 29 Apr 2011 19:40:39 -0400 Received: by pxi7 with SMTP id 7so1054907pxi.30 for ; Fri, 29 Apr 2011 16:40:39 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Brand Cc: Org Mode Mailing List Hi Michael, Thank you for your suggestion. However, I would prefer not to clutter the text with repeating the protocol there. Also, the example I gave is mainly for illustration, in the way I use it, the description would not show the filename, but some other text. Chris On 2011-04-30 00:18, Michael Brand wrote: > For links with a description I always just repeat the protocol tag > there manually: > [[file://path/to/my file][file: myfile]] > [[http://www.example.com/path/to/my file][http: myfile]] > > Together with the space after the colon this shows, also immediately, > if you look only at the link description or at the link itself: > [[file://path/to/my file]] > [[http://www.example.com/path/to/my file]] > > This color-independent solution works even if colors would not be > available occasionally like with some terminal configs. > > Michael > > 2011/4/29 Christian Wittern: >> In the archives, I have seen on and off references to a new, extensible >> syntax that would go beyond /italic/, *bold* and =code=, but I have seen no >> traces of seeing it implemented. >> >> For the time being, therefore I am settling on having different linktypes >> coming up in different colors, which I hope is doable, but again, I found no >> immediate solution. I wonder if somebody has an idea of how to go about >> this. What I would like to see is that, for example: >> >> [[file://path/to/my file][myfile]] comes out visibly different from >> [[http://www.example.com/path/to/my file][myfile]] , for example the one in >> red, the other in blue. -- Christian Wittern Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN