help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indent region with prefix


From: Andrea Vettorello
Subject: Re: Indent region with prefix
Date: Wed, 16 Jan 2008 22:12:54 +0100

On Jan 16, 2008 7:56 PM, 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.

With cursor on the first line i would run cua-set-rectangle-mark (i
don't know the default keybind, here it's M-Enter), select the first
row (C-u C-n) then insert "> ", it will be replicated on the
rectangular region.


-- 
Andrea




reply via email to

[Prev in Thread] Current Thread [Next in Thread]