]> granicus.if.org Git - python/commitdiff
(python-cc-style): Added definitions for c-hanging-braces-alist which
authorBarry Warsaw <barry@python.org>
Fri, 20 Dec 1996 16:42:04 +0000 (16:42 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 20 Dec 1996 16:42:04 +0000 (16:42 +0000)
make the most sense for PyMethodDef structures.

Misc/ccpy-style.el

index c1cdd7b873dd35daa97f3e24a861bd2dd44dba83..07118e8f4d59ea7b4dd1e1070fc1662482d3e656 100644 (file)
 (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.")