help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Draw a solid horizontal line in a buffer


From: harven
Subject: Re: Draw a solid horizontal line in a buffer
Date: Sun, 10 May 2009 11:28:41 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin)

Joe Riel <joer@san.rr.com> writes:

> Is there a way to draw a solid horizontal line in a buffer?
> Both hypens and underscores, at least in the font I use,
> have gaps between them.


C-u 80 C-q 1110041
or evaluate   
(make-string 80 ?\u2501)

This gives
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

which should appear as a solid horizontal line if you have unicode support.
See http://www.unicode.org/charts/PDF/U2500.pdf for the list of unicodes
related to box drawing. Some examples:

(make-string 80 ?\u2500)
────────────────────────────────────────────────────────────────────────────────

(insert "\n\u256D\u2500\u256E\n\u2502\u2660\u2502\n\u2570\u2500\u256F\n")
╭─╮
│♠│
╰─╯


reply via email to

[Prev in Thread] Current Thread [Next in Thread]