[python-committers] Untabifying the C codebase
Brett Cannon
brett at python.org
Mon May 10 23:03:30 CEST 2010
More information about the python-committers mailing list
Mon May 10 23:03:30 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 ]
On Mon, May 10, 2010 at 07:02, Mark Dickinson <dickinsm at gmail.com> wrote: > On Mon, May 10, 2010 at 2:25 PM, Barry Warsaw <barry at python.org> wrote: > > On May 09, 2010, at 09:01 PM, A.M. Kuchling 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? > > > > 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) > > )) > > See also > > http://wiki.python.org/moin/EmacsEditor > > where there's a 'python-new' style that can be added to an .emacs file. And for those of you using the python.vim file from Misc/Vim, you have been covered automatically. =) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-committers/attachments/20100510/a5ede688/attachment.html>
- 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