emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [RFC] Change visibility for bracket links


From: Rasmus
Subject: Re: [O] [RFC] Change visibility for bracket links
Date: Wed, 12 Oct 2016 11:27:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> Clément Pit--Claudel <address@hidden> writes:
>
>> What about having our cake and eating it too? :) We could do just the
>> same as what prettify-symbols-mode does with its
>> prettify-symbols-unprettify-at-point variable. Namely, we could show
>> the brackets when point is at the edge of a link, and hide them
>> otherwise. The same trick could be applied to subscripts (I have
>> working code for that for a different project, at
>> https://github.com/cpitclaudel/company-coq/blob/master/company-coq.el#L4287).
>>
>> Wouldn't this preserve the flow of reading, while allowing for easier
>> editing?
>
> I have the feeling that it would cause some visual "jumping" when the
> link is very different (e.g., wider) than its visible pars. Some links
> tend to be very long. So showing the full link is not an option.

We can limit it to a certain number of characters and expand it, like when
the width of table columns is limited.

BTW: I don’t find that prettify-symbols-mode with (setq
prettify-symbols-unprettify-at-point 'right-edge) ruins the reading flow.
On the contrary, I would love to port org-entities to use this
functionality for at display in buffers.

Rasmus

-- 
Together we will make the possible totalllly impossible!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]