From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: patch for custom colored links in org-mode Date: Fri, 01 Jul 2016 14:51:54 +0200 Message-ID: <87eg7dikr9.fsf@saiph.selenimh> References: <87twgdxtfm.fsf@saiph.selenimh> <87lh1pazj9.fsf@gmx.us> <877fd9xecw.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIxvS-0001Qp-J0 for emacs-orgmode@gnu.org; Fri, 01 Jul 2016 08:52:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIxvQ-00079s-IF for emacs-orgmode@gnu.org; Fri, 01 Jul 2016 08:52:05 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:57518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIxvQ-00079o-BA for emacs-orgmode@gnu.org; Fri, 01 Jul 2016 08:52:04 -0400 In-Reply-To: (John Kitchin's message of "Tue, 28 Jun 2016 16:42:42 -0400") 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 Cc: "emacs-orgmode@gnu.org" , Rasmus Hello, John Kitchin writes: > Indeed, I based this approach off a patch Rasmus posted some time ago for > colored blocks ;) > > It is also similar to some other approaches in org-mode, e.g. > the "org-%s-complete-link" functions. This is yet another obscure part of Org, IMO. I really think we need to normalize link customization, for an improved user experience. > Would you consider expanding org-add-link-type like this to set those in > the special variable? I don't like much `org-add-link-type' because, it inherently only operates on additional link types, so it is not sufficient to handle all customization needs. I'd rather have a single way to control link behaviour. I think we could rename `org-link-display-parameters' into `org-link-type-parameters' and control links from that location. More explicitly, the value for a given link type (string) could be a plist with the following properties - :follow - :export - :face - :display - :completion - :echo The value would contain every link type, including internal ones. Its value would probably be daunting at first (compared, e.g., with a boolean) but it would give full control over links. WDYT? Regards, -- Nicolas Goaziou