From: Brian Adkins <lojicdotcom@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: underline with character e.g. '-' or '='
Date: Tue, 13 May 2008 16:03:34 -0400 [thread overview]
Message-ID: <871w4655ux.fsf@gmail.com> (raw)
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
next reply other threads:[~2008-05-13 20:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 20:03 Brian Adkins [this message]
2008-05-13 21:33 ` underline with character e.g. '-' or '=' David Hansen
[not found] <mailman.11566.1210714703.18990.help-gnu-emacs@gnu.org>
2008-05-14 19:05 ` Brian Adkins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871w4655ux.fsf@gmail.com \
--to=lojicdotcom@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.