From: Eric Schulte <eric.schulte@gmx.com>
To: nicholas.dokos@hp.com
Cc: Marvin Doyley <marvinpas@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: text to plain list
Date: Fri, 22 Jun 2012 10:06:52 -0600 [thread overview]
Message-ID: <87ehp7e3fn.fsf@gmx.com> (raw)
In-Reply-To: <5024.1340398939@alphaville> (Nick Dokos's message of "Fri, 22 Jun 2012 17:02:19 -0400")
Nick Dokos <nicholas.dokos@hp.com> writes:
> Marvin Doyley <marvinpas@gmail.com> wrote:
>
>> Hi there,
>>
>> Is there quick method for converting a bunch of text to plain list ?
>>
>
> Something like
>
> sed 's/^/- /' in.txt > out.txt
>
> perhaps? If that's not what you mean, what do you mean?
>
I find Emacs Macros work very well for this.
1) position the cursor at the front of the first line
2) C-x ( to start recording a macro
3) manually turn this item into a list
4) position the cursor at the front of the next line
5) C-x ) to finish recording a macro
6) X-e to run the macro on the second item
after that you may continue pressing "e" to re-run the macro, or run the
macro any number of times with a numeric prefix argument. This does
however require some regularity in your list items.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte
next prev parent reply other threads:[~2012-06-22 21:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-22 20:42 text to plain list Marvin Doyley
2012-06-22 20:59 ` William LÉCHELLE
2012-06-22 21:02 ` Nick Dokos
2012-06-22 16:06 ` Eric Schulte [this message]
2012-06-22 21:39 ` Nick Dokos
2012-06-22 22:23 ` Marvin Doyley
2012-06-22 21:14 ` Marvin Doyley
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ehp7e3fn.fsf@gmx.com \
--to=eric.schulte@gmx.com \
--cc=emacs-orgmode@gnu.org \
--cc=marvinpas@gmail.com \
--cc=nicholas.dokos@hp.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).