Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the character composing the Emacs vertical border?

Tags:

emacs

emacs24

I am using Emacs 24, console. I am looking for a way to replace the character of the vertical border with another, \u2502. Since I didn't find much, I believe it is hardcoded in the source.

Is there any better way to do this, other than recompiling Emacs ? I use many different machines, and thus having this customization inside my ./emacs.d/ would be quite awesome as a matter of fact ;].

like image 630
Mathieu Marques Avatar asked Aug 13 '13 13:08

Mathieu Marques


1 Answers

I use this

;; Reverse colors for the border to have nicer line  
(set-face-inverse-video-p 'vertical-border nil)
(set-face-background 'vertical-border (face-background 'default))

;; Set symbol for the border
(set-display-table-slot standard-display-table
                        'vertical-border 
                        (make-glyph-code ?┃))
like image 50
Alex Vorobiev Avatar answered Nov 14 '22 04:11

Alex Vorobiev