From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Link "bracket-types" Date: Thu, 10 May 2018 12:58:24 -0700 Message-ID: References: <87a7t8q64z.fsf@nicolasgoaziou.fr> <87603vr86w.fsf@nicolasgoaziou.fr> <87mux7prcw.fsf@nicolasgoaziou.fr> <87a7t7pjb2.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGrhs-0008SK-OS for emacs-orgmode@gnu.org; Thu, 10 May 2018 15:58:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGrhr-000732-G5 for emacs-orgmode@gnu.org; Thu, 10 May 2018 15:58:28 -0400 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:36963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGrhr-00072e-3C for emacs-orgmode@gnu.org; Thu, 10 May 2018 15:58:27 -0400 Received: by mail-lf0-x235.google.com with SMTP id r2-v6so4675565lff.4 for ; Thu, 10 May 2018 12:58:26 -0700 (PDT) In-Reply-To: <87a7t7pjb2.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Michael Brand , Org Mode (add-hook 'org-mode-hook 'alpha-eldoc-help-echo-mode) ;; fixme in elisp we want both link eldoc and elisp eldoc (defun hoka-eldoc-help-echo-at-point () "Eldoc thingy for help-echo text properties." (let ((val (get-text-property (point) 'help-echo))) val)) (defun alpha-eldoc-help-echo-mode () "Enable eldoc mode with e.g. org links to display in minibuffer when cursor is over them. Call in the relevant buffer. M-x eldoc-mode to turn off." (interactive) (eval-when-compile (require 'eldoc)) (setq-local eldoc-documentation-function 'hoka-eldoc-help-echo-at-point) (eldoc-mode)) On 5/10/18, Nicolas Goaziou wrote: > Michael Brand writes: > >> Only when I can see the brackets of case 3 in Org rendered as >> : [[https://en.wikipedia.org/wiki/Filter]] >> I know that I can change it to >> : https://en.wikipedia.org/wiki/Filter >> for a cleaner view in non-Org tools. >> >> For case 1 I still prefer to see only the link description because I >> prefer to hide a too disturbing URL part most of the times. My example >> for case 1 is only artificial and my actual descriptions will be such >> that it can not be confused with case 2. > > IIUC, you want fontification to make it obvious there are square > brackets in links, so that you know when they can be removed, for > improved readability outside Org. > > If I'm correct, why don't you write a function that normalizes links for > you, so you don't have to bother, e.g., something that turns [[URL]] > into URL unless URL contains parenthesis or spaces? > > --=20 The Kafka Pandemic: The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time. "You=E2=80=99ve really gotta quit this and get moving, because this is murd= er by neglect." --- .