From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: Indent region with prefix
Date: Thu, 17 Jan 2008 10:23:13 +0200 [thread overview]
Message-ID: <87sl0wn9n2.fsf@kobe.laptop> (raw)
In-Reply-To: 90532082-c7a3-4a40-93cb-e876826370e9@u10g2000prn.googlegroups.com
On Wed, 16 Jan 2008 10:56:09 -0800 (PST), Chris L <Chris.Lott@gmail.com> wrote:
> If I have these lines:
>
> There once was a geek from Nantucket
> who counted his loops in a bucket.
> But then he found Perl,
> his hair started to curl,
> and his slide rule fell out of his pucket.
>
> And I want to transform them as quickly as possible to:
>
>> There once was a geek from Nantucket
>> who counted his loops in a bucket.
>> But then he found Perl,
>> his hair started to curl,
>> and his slide rule fell out of his pucket.
>
> What do I do? I'm not in Gnus or email mode, this is for Markdown
> text. Right now I am using a keyboard macro, but it seems like there
> should be a simple bit of magic to accomplish this, since it is so
> similar to commenting.
You already have a fair number of suggestions in this thread, but in
this case it's also simple to:
1. Mark the region
2. M-x replace-regexp RET ^ RET > SPC RET
The string-rectangle command is my favorite for anything more complex
than a simple regexp can do.
HTH,
Giorgos
prev parent reply other threads:[~2008-01-17 8:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 18:56 Indent region with prefix Chris L
2008-01-16 20:08 ` Stephen Berman
2008-01-16 20:17 ` David Golden
2008-01-16 21:12 ` Andrea Vettorello
2008-01-16 21:17 ` Scott Frazer
[not found] ` <mailman.6204.1200517983.18990.help-gnu-emacs@gnu.org>
2008-01-17 0:15 ` Exal de Jesus Garcia Carrillo
2008-01-17 8:23 ` Giorgos Keramidas [this message]
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sl0wn9n2.fsf@kobe.laptop \
--to=keramida@ceid.upatras.gr \
--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.
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).