[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Draw a solid horizontal line in a buffer
From: |
Dmitry Dzhus |
Subject: |
Re: Draw a solid horizontal line in a buffer |
Date: |
Sun, 10 May 2009 10:51:49 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
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
む