From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: Indenting paragraphs manually Date: Mon, 7 Mar 2011 13:04:09 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51b16d3060f0f049ddd6d73 X-Trace: dough.gmane.org 1299474276 18473 80.91.229.12 (7 Mar 2011 05:04:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2011 05:04:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dani Moncayo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 06:04:32 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PwScR-0001wW-TC for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 06:04:32 +0100 Original-Received: from localhost ([127.0.0.1]:34150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwScR-0002kP-3p for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 00:04:31 -0500 Original-Received: from [140.186.70.92] (port=60517 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwSc7-0002kK-Gq for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 00:04:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwSc6-0000xe-M1 for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 00:04:11 -0500 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:32888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwSc6-0000xa-JU for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 00:04:10 -0500 Original-Received: by vws13 with SMTP id 13so4293259vws.0 for ; Sun, 06 Mar 2011 21:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=n2HrqCLaAmqcH8pZaZ2omviaEq16NJdUFIa8JAlIz0s=; b=aOU4cfJTUP3N/trM2QZFl1OYqKKxA1Lz/wqOKDj9AElqBqvRgzkbaq2LiT5gfVl/Vf LCzLpYqbShx3YyRFGL2SDJtH8ik5YWKePv2ZskvosuEEsVdF6Xz1jjWDOODeG6TC5+Sx 7hdEP5JC5dxz/hej4tayUDQu/pDdWSxlR7CNk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Lb9VCL7oyMbAAmXNgfBdvK/MCKU8DdA6zq5VfrlN03BxrTy56w5oMPbTolKhQ+ajUL HwBRyegCtS/5R023xnPw6nGZWJkVWLb30BrNcpCCGG/028HL8GUhVaKm5AzT7DNNV/v8 QhgtSQzHOFqANWjo8F+b/ykavb1Fe/pPbJtVs= Original-Received: by 10.52.173.51 with SMTP id bh19mr4354390vdc.170.1299474249289; Sun, 06 Mar 2011 21:04:09 -0800 (PST) Original-Received: by 10.52.158.193 with HTTP; Sun, 6 Mar 2011 21:04:09 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79842 Archived-At: --bcaec51b16d3060f0f049ddd6d73 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Mar 6, 2011 at 7:47 PM, Dani Moncayo wrote: > Yes, I know that way of indenting several lines, but IMO it's too > laborious. I'd like to have a more agile way. > My comment about cua-mode rectangles seems to have gottel lost in the shuffle. IMO, this is the "agile" way to get exactly what you want. 1. evaluate (assuming you want no part of cua bindings) (setq cua-enable-cua-keys 'emacs) ;; rotates around the rectangle corners, if "RET" gets overriden (cua-selection-mode 1) 2. select region you want, press C-enter, and your selection becomes a rectangle. If the point isn't on the left side of the rectangle, press Enter until it moves there. 3. press Tab, space, backspace, whatever to change the indentation. cua-mod rectangle remains selected. -- Le --bcaec51b16d3060f0f049ddd6d73 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sun, Mar 6, 2011 at 7:47 PM, Dani Moncayo <dmoncayo@gmail.com= > wrote:
Yes, I know that way of indenting several lines, but IMO it's too
laborious. I'd like to have a more agile way.

=
=A0My comment about cua-mode rectangles seems to have gottel los= t in the shuffle. =A0 IMO, this is the "agile" way to get exactly= what you want.

1. evaluate (assuming you want no part of cua bindings)=

(setq cua-enable-cua-keys 'emacs)
=A0=A0;; <kp-enter> rotates around the rec= tangle corners, if "RET" gets overriden
(cua-selection-mode 1)
2. select region you want, press C-enter, and your se= lection becomes a rectangle. =A0 If the point isn't on the left side of= the rectangle, press Enter until it moves there.

3. press Tab, space, backspace, whatever to change the = indentation. =A0cua-mod rectangle remains selected.

--
L= e
--bcaec51b16d3060f0f049ddd6d73--