[python-committers] Untabifying the C codebase
Guilherme Polo
ggpolo at gmail.com
Mon May 10 04:04:28 CEST 2010
More information about the python-committers mailing list
Mon May 10 04:04:28 CEST 2010
- Previous message: [python-committers] Untabifying the C codebase
- Next message: [python-committers] Untabifying the C codebase
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2010/5/9 Alexandre Vassalotti <alexandre at peadrop.com>: > 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 > And from the manpage: ... BUGS indent has even more switches than ls(1). ... > -- Alexandre -- -- Guilherme H. Polo Goncalves
- Previous message: [python-committers] Untabifying the C codebase
- Next message: [python-committers] Untabifying the C codebase
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the python-committers mailing list