2010/5/9 Alexandre Vassalotti <alexandre@peadrop.com>:
On Sun, May 9, 2010 at 6:01 PM, A.M. Kuchling <amk@amk.ca> wrote:
I'm happy to see the curses module re-indented. Does anyone have a set of settings for Emacs or for GNU indent for Python's C indentation style?
This invocation of GNU indent should work reasonably well:
indent
--no-tabs
--indent-level8
--blank-lines-after-procedures
--no-blank-lines-after-declarations
--no-comment-delimiters-on-blank-lines
--start-left-side-of-comments
--braces-on-if-line
--dont-cuddle-else
--cuddle-do-while
--case-indentation0
--dont-space-special-semicolon
--no-space-after-function-call-names
--space-after-for
--space-after-if
--space-after-while
--no-blank-lines-after-commas
--declaration-indentation1
--braces-on-struct-decl-line
--procnames-start-lines
--continue-at-parentheses
--preprocessor-indentation0
--break-after-boolean-operator
And from the manpage:
... BUGS indent has even more switches than ls(1). ...
-- Alexandre
-- -- Guilherme H. Polo Goncalves