From 7607e8f4fb41c6b2cd83b42420bff2664a98b4e2 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 20 Dec 1996 16:42:04 +0000 Subject: [PATCH] (python-cc-style): Added definitions for c-hanging-braces-alist which make the most sense for PyMethodDef structures. --- Misc/ccpy-style.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Misc/ccpy-style.el b/Misc/ccpy-style.el index c1cdd7b873d..07118e8f4d5 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.")