[python-committers] Untabifying the C codebase
Alexandre Vassalotti
alexandre at peadrop.com
Mon May 10 03:31:08 CEST 2010
On Sun, May 9, 2010 at 6:01 PM, A.M. Kuchling <amk at 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
-- Alexandre
More information about the python-committers
mailing list