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

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

Re: Emacs block indentation


From: Andreas Röhler
Subject: Re: Emacs block indentation
Date: Wed, 30 Sep 2009 20:25:53 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

Jaideep Das wrote:
> I am using emacs 2.2 at work and 2.3 at home for python coding. I want to
> know how can I indent or outdent a block of code multiple times. What I mean
> is when I select a code part using C-space and then use C-x <tab> / C-c-> /
> C-c-< to indent or outdent, this only works once and then deselect the
> block. What if i want to indent multiple times on the same code block do I
> have to repeated this key sequence from selecting the block to indent.
>   

Commit message of latest revision of python-mode.el (note: not
python.el) says:

"When shifting regions right and left, keep the region active in Emacs."

This might solve your problem.

Get it at

https://code.launchpad.net/~python-mode-devs/python-mode/python-mode

or with
 
bzr branch lp:python-mode

HTH

Andreas

--
https://code.launchpad.net/s-x-emacs-werkstatt/










reply via email to

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