Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (40 sloc) 1.73 KB

Build Status


Surround a string with box-drawing characters in Emacs.


(require 'unicode-enbox)

(insert "\n" (unicode-enbox "testing"))


unicode-enbox.el has no user-level interface; it is only useful for programming in Emacs Lisp.

This library provides two functions:


which can be used to add/remove box-drawing characters around a single- or multi-line string.

See Also

  • 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))
                  (font-spec :name "DejaVu Sans Mono:" :registry "iso10646-1"))

Compatibility and Requirements

GNU Emacs version 24.4-devel     : yes, at the time of writing
GNU Emacs version 24.3           : yes
GNU Emacs version 23.3           : yes
GNU Emacs version 22.3 and lower : no

Requires string-utils.el, ucs-utils.el

Uses if present: unicode-fonts.el

Jump to Line
Something went wrong with that request. Please try again.