[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making vertical-border char defcustom?
From: |
Paul W. Rankin |
Subject: |
Re: Making vertical-border char defcustom? |
Date: |
Mon, 20 Jan 2020 09:49:30 +1000 |
On 20 Jan 2020, at 1:35 am, Eli Zaretskii <address@hidden> wrote:
>
>> From: Paul W. Rankin <address@hidden>
>> Date: Mon, 20 Jan 2020 00:13:27 +1000
>>
>> (defun prettify-vertical-border (&optional dummy)
>> (ignore dummy)
>> (set-display-table-slot
>> (or buffer-display-table standard-display-table)
>> 'vertical-border ?│))
>>
>> (when (not window-system)
>> (add-hook 'window-configuration-change-hook
>> 'prettify-vertical-border)
>> (add-hook 'change-major-mode-hook
>> 'prettify-vertical-border))
>>
>> However the problem with this approach is that some major/minor-modes
>> set their own overriding display-table... I think help-mode or
>> special-mode...
>
> I don't understand the difficulty. AFAIU, all you need is augment
> your prettify-vertical-border with a call to window-display-table, and
> then no overriding could get in your way. Or am I missing something?
Ah sorry, the issue seems to be with some interference from a global minor mode
page-break-lines-mode... Your suggestion helped me find that. Thanks.
Would the net benefit from making the vertical-border char defcustom still make
it worthwhile? It seems similar to the recently added
display-fill-column-indicator-character, a vertical line that sits next to the
vertical border and is customisable.