[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Where is the vertical-border char set?
From: |
Eli Zaretskii |
Subject: |
Re: Where is the vertical-border char set? |
Date: |
Wed, 30 Apr 2014 17:21:45 +0300 |
> From: address@hidden (Trent W. Buck)
> Date: Wed, 30 Apr 2014 17:55:52 +1000
>
> Stupidly, I started doing this today:
>
> (setq mode-line-end-spaces (make-string 1024 ?─))
>
> It makes the modeline look prettier (except when it doesn't).
> The 1024 is arbitrary, it replaces %- (infinite MINUS HYPHEN).
> I can't see how to ask for infinity of an arbitrary codepoint.
What's wrong with 1024? If that might be too few, enlarge it.
> I want to do the same thing for the vertical-border character,
I hope by "do the same thing" you do NOT mean to have 1024 characters
as the border, but rather replace "|" with some non-ASCII character.
> Where do I set that?
It hides in one of the extra slots of the display table. See the node
"Display Tables" in the ELisp manual.
> CAN I set that?
Yes, something like
(set-display-table-slot (setq standard-display-table (make-display-table))
'vertical-border ?│)
But beware: the character you use must be encodable by your
terminal-coding-system, otherwise you will get a question mark "?"
instead of your fancy character.
(Personally, I question the utility of doing what you want, but that's
me.)