[python-committers] Untabifying the C codebase
Barry Warsaw
barry at python.org
Mon May 10 15:25:05 CEST 2010
On May 09, 2010, at 09:01 PM, A.M. Kuchling wrote:
>On Sun, May 09, 2010 at 06:56:27PM +0200, Antoine Pitrou wrote:
>> There was one file that I didn't touch: Modules/_cursesmodule.c
>> Indentation is so uncommon there that interested people should reformat
>> it themselves, if desired.
>
>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?
In Emacs, visit a C file and type:
C-c . python RET
'python' is a standard c-mode indentation style, however it's set up to use
tabs. It should be updated, maybe to a 'python3' style? Here's a quick and
dirty hack:
(c-add-style "python3" '("python"
(indent-tabs-mode . nil)
(c-basic-offset . 4)
))
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-committers/attachments/20100510/56d8fd4d/attachment.pgp>
More information about the python-committers
mailing list