Indentation problem

Skip Montanaro skip at pobox.com
Mon Mar 25 23:05:25 EST 2002


    Isaac> I'd rather suggest to have a Python-specific indentation command
    Isaac> in Emacs that will "reindent a region in a way that fits the
    Isaac> current indentation style and fit in the current context, but
    Isaac> retain the original meaning".  This really shouldn't be that
    Isaac> difficult.  Anyone will try his elisp skills?

Check out python-mode:

    http://www.python.org/emacs/python-mode/

It already has key bindings C-c > and C-c < which indent or dedent the
selected region by the indentation delta.  Works like a charm.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list