diff options
author | Barry Warsaw <barry@python.org> | 1996-12-20 16:42:04 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1996-12-20 16:42:04 (GMT) |
commit | 7607e8f4fb41c6b2cd83b42420bff2664a98b4e2 (patch) | |
tree | 5de6050a0af0480c3850ac785328941954b52d5b /Misc/ccpy-style.el | |
parent | 0b25a662e0b760be8bbe5627d9cad6611f7b3d69 (diff) | |
download | cpython-7607e8f4fb41c6b2cd83b42420bff2664a98b4e2.zip cpython-7607e8f4fb41c6b2cd83b42420bff2664a98b4e2.tar.gz cpython-7607e8f4fb41c6b2cd83b42420bff2664a98b4e2.tar.bz2 |
(python-cc-style): Added definitions for c-hanging-braces-alist which
make the most sense for PyMethodDef structures.
Diffstat (limited to 'Misc/ccpy-style.el')
-rw-r--r-- | Misc/ccpy-style.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Misc/ccpy-style.el b/Misc/ccpy-style.el index c1cdd7b..07118e8 100644 --- a/Misc/ccpy-style.el +++ b/Misc/ccpy-style.el @@ -27,8 +27,14 @@ (defconst python-cc-style '((indent-tabs-mode . t) (c-basic-offset . 8) - (c-offsets-alist . ((substatement-open . 0) - )) + (c-offsets-alist . ((substatement-open . 0) + )) + (c-hanging-braces-alist . ((brace-list-open after) + (brace-list-intro) + (brace-list-close) + (substatement-open after) + (block-close . c-snug-do-while) + )) ) "Standard Python C coding style.") |