From: Barry Warsaw Date: Fri, 20 Dec 1996 16:42:04 +0000 (+0000) Subject: (python-cc-style): Added definitions for c-hanging-braces-alist which X-Git-Tag: v1.5a1~678 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7607e8f4fb41c6b2cd83b42420bff2664a98b4e2;p=thirdparty%2FPython%2Fcpython.git (python-cc-style): Added definitions for c-hanging-braces-alist which make the most sense for PyMethodDef structures. --- diff --git a/Misc/ccpy-style.el b/Misc/ccpy-style.el index c1cdd7b873dd..07118e8f4d59 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.")