* Draw a solid horizontal line in a buffer
@ 2009-05-09 20:10 Joe Riel
0 siblings, 0 replies; 4+ messages in thread
From: Joe Riel @ 2009-05-09 20:10 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Draw a solid horizontal line in a buffer
[not found] <mailman.6914.1241899822.31690.help-gnu-emacs@gnu.org>
@ 2009-05-10 6:51 ` Dmitry Dzhus
2009-05-10 8:48 ` Peter Dyballa
2009-05-10 9:28 ` harven
1 sibling, 1 reply; 4+ messages in thread
From: Dmitry Dzhus @ 2009-05-10 6:51 UTC (permalink / raw)
To: help-gnu-emacs
Joe Riel wrote:
> 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.
Monospaced fonts are usually designed in such way that various dashes
typeset next to each other form a continuous line.
You may try to insert an image with a line as Emacs support several type
of images.
Check out this function:
(defun insert-image-file (file)
"Insert an image from FILE in the current buffer at point"
(interactive "fImage file name: ")
(insert-image (create-image file)))
You may call it interactively via `M-x insert-image-file` or use it from
your Emacs Lisp code like `(insert-image-file "horizontal-line.png")`.
--
Happy Hacking.
http://sphinx.net.ru
む
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Draw a solid horizontal line in a buffer
2009-05-10 6:51 ` Draw a solid horizontal line in a buffer Dmitry Dzhus
@ 2009-05-10 8:48 ` Peter Dyballa
0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2009-05-10 8:48 UTC (permalink / raw)
To: emacs list
> Joe Riel wrote:
>> 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.
You could use characters from the Box Drawing block in Unicode (U
+2500-U+257F), for example:
──── BOX DRAWINGS LIGHT HORIZONTAL @ U+2500
━━━━ BOX DRAWINGS HEAVY HORIZONTAL @ U+2501
A few fonts have these characters: FreeMono (FreeSans, FreeSerif),
DejaVu Sans Mono, Monospace, Unicode Symbols ...
--
Greetings
Pete
Got Mole problems?
Call Avogadro 6.02 x 10^23
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Draw a solid horizontal line in a buffer
[not found] <mailman.6914.1241899822.31690.help-gnu-emacs@gnu.org>
2009-05-10 6:51 ` Draw a solid horizontal line in a buffer Dmitry Dzhus
@ 2009-05-10 9:28 ` harven
1 sibling, 0 replies; 4+ messages in thread
From: harven @ 2009-05-10 9:28 UTC (permalink / raw)
To: help-gnu-emacs
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")
╭─╮
│♠│
╰─╯
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-10 9:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.6914.1241899822.31690.help-gnu-emacs@gnu.org>
2009-05-10 6:51 ` Draw a solid horizontal line in a buffer Dmitry Dzhus
2009-05-10 8:48 ` Peter Dyballa
2009-05-10 9:28 ` harven
2009-05-09 20:10 Joe Riel
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.