[Top][All Lists]

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

Re: Python indent region

From: Wolfram Kraus
Subject: Re: Python indent region
Date: Mon, 10 Jul 2006 13:12:10 +0200
User-agent: Thunderbird (X11/20060527)

On 10.07.2006 12:49, Shug Boabby wrote:
> Hello all,
> As you may know, python recognises blocks of code by their indentation
> level. Emacs handles this very well when writing code. However, Emacs
> does not handle indenting/unindenting whole regions very well.
> I was wondering if somebody could please write me some lisp code that
> would add 4 spaces (or the user defined indent character) to the
> beginning of each line in a region, and a complementary function to
> reduce each line in a region by one indentation level. These would
> really help out when doing some code restructuring in Python.
> Thanks,
> Shug
In Python-mode
C-c <
C-c >
should do what you want


reply via email to

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