Surround a string with box-drawing characters in Emacs.
Unicode-enbox.el has no user-level interface; it is only useful for programming in Emacs Lisp.
This library provides two functions:
unicode-enbox unicode-enbox-debox
which can be used to add/remove box-drawing characters around a single- or multi-line string.
M-x customize-group RET unicode-enbox RET
For good monospaced box-drawing characters, it is recommended to install the free DejaVu? Sans Mono font and use unicode-fonts.el. If unicode-fonts.el is too heavy for your needs, try adding the following bit to your ~/.emacs file:
(set-fontset-font "fontset-default"
(cons (decode-char 'ucs #x2500) (decode-char 'ucs #x257F))
'("DejaVu Sans Mono" . "iso10646-1"))unicode-enbox.el is available at github:
and via EmacsWiki:
Tested only on GNU Emacs version 24.1
Requires StringUtils, UcsUtils