Nicolas Goaziou <> writes:

> A "good writing experience" includes a "good editing experience", or so
> I think. I'm suggesting to solve some problems related to the latter,
> under certain circumstances I explained in my original post. 

I agree there’s a problem, but I find the proposed solution potentially

> The `org-link' face is not enough, as pointed out, because it's not
> a matter of making the links stand out in the buffer.

I see.

>> Clément suggestion of a using something akin to prettify symbols mode is
>> great, though.  We could limit the length of the url being shown.  It can
>> always be edited with e.g. "C-c ’" or, as currently, "C-c C-l".
> The problem is not really about editing the link itself, but editing
> around the link. The problem also arises for the text just before or
> just after the link. "C-c C-l" cannot help here.

It is a problem.  It's also a problem with super/subscripts as pointed out

> I cannot tell, however, if Clément's suggestion is good or not. This is
> why I'd like to see a mock of the result, if anyone wants to implement
> one.

Here’s a quick-and-dirty "mockup" in Emacs 25.1.  It doesn’t work
properly, obviously, but try to move the cursor from left-to-right to get
a taste of what it could be like.  Of course, the behavior could be
tweaked, e.g. characters displayed etc...

  (setq prettify-symbols-alist
. " ")
          ("]]" . " "))
        prettify-symbols-unprettify-at-point 'right-edge)
  (insert "\ntext before 
description]] text after\n"))


However beautiful the theory, one should occasionally look at the evidence

Reply via email to