all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* underline with character e.g. '-' or '='
@ 2008-05-13 20:03 Brian Adkins
  2008-05-13 21:33 ` David Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Adkins @ 2008-05-13 20:03 UTC (permalink / raw)
  To: help-gnu-emacs

I often underline text with a hyphen or equal sign manually. I would
appreciate any info regarding how to accomplish this with a small elisp
function. Actually, if I had a function to compute the length of the
line, I think I would be all set.

For example, if I had the following line:

Section One

I would like to position the the cursor on the 'S' and invoke:
M-x underline-line-with-char

Which would prompte for a character in the minibuffer. If = was
supplied, the result would be:

Section One
===========

It seems like a simple task:
1) Prompt for a character
2) Compute the length of the line
3) Insert a line below the current line
4) Insert <length> number of characters

Thanks,
Brian Adkins


^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.11566.1210714703.18990.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2008-05-14 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-13 20:03 underline with character e.g. '-' or '=' Brian Adkins
2008-05-13 21:33 ` David Hansen
     [not found] <mailman.11566.1210714703.18990.help-gnu-emacs@gnu.org>
2008-05-14 19:05 ` Brian Adkins

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.