From: Marvin Doyley <marvinpas@gmail.com>
To: Eric Schulte <eric.schulte@gmx.com>
Cc: "nicholas.dokos@hp.com" <nicholas.dokos@hp.com>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: text to plain list
Date: Fri, 22 Jun 2012 18:23:37 -0400 [thread overview]
Message-ID: <3508672923438786937@unknownmsgid> (raw)
In-Reply-To: <87ehp7e3fn.fsf@gmx.com>
Thanks Erick for introducing me to emacs macros
Cheers
M
Sent from my iPhone
On Jun 22, 2012, at 5:23 PM, Eric Schulte <eric.schulte@gmx.com> wrote:
> 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 22: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
2012-06-22 21:39 ` Nick Dokos
2012-06-22 22:23 ` Marvin Doyley [this message]
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=3508672923438786937@unknownmsgid \
--to=marvinpas@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=eric.schulte@gmx.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).