1;; C style for Emacs, to assist in following PETSc coding conventions 2((nil . ((indent-tabs-mode . nil) 3 (tab-width . 8) 4 (show-trailing-whitespace . t))) 5 (c-mode . ((c-tab-always-indent . t) 6 (c-basic-offset . 2) 7 (c-comment-only-line-offset . 0) 8 (c-block-comment-prefix . "") 9 (c-hanging-braces-alist . ((substatement-open after) 10 (brace-list-open after) 11 (brace-entry-open) 12 (defun-open after) 13 (class-open after) 14 (inline-open after) 15 (block-open after) 16 (block-close . c-snug-do-while) 17 (statement-case-open after) 18 (substatement after))) 19 (c-hanging-colons-alist . ((member-init-intro before) 20 (inher-intro) 21 (case-label after) 22 (label after) 23 (access-label after))) 24 (c-hanging-semi&comma-criteria . (c-semi&comma-no-newlines-before-nonblanks)) 25 (c-cleanup-list . (scope-operator 26 brace-else-brace 27 brace-elseif-brace 28 brace-catch-brace 29 empty-defun-braces 30 list-close-comma 31 defun-close-semi)) 32 (c-offsets-alist . ((inexpr-class . +) 33 (inexpr-statement . +) 34 (lambda-intro-cont . +) 35 (inlambda . c-lineup-inexpr-block) 36 (template-args-cont c-lineup-template-args +) 37 (incomposition . +) 38 (inmodule . +) 39 (innamespace . +) 40 (inextern-lang . +) 41 (composition-close . 0) 42 (module-close . 0) 43 (namespace-close . 0) 44 (extern-lang-close . 0) 45 (composition-open . 0) 46 (module-open . 0) 47 (namespace-open . 0) 48 (extern-lang-open . 0) 49 (objc-method-call-cont c-lineup-ObjC-method-call-colons c-lineup-ObjC-method-call +) 50 (objc-method-args-cont . c-lineup-ObjC-method-args) 51 (objc-method-intro . 52 [0]) 53 (friend . 0) 54 (cpp-define-intro c-lineup-cpp-define +) 55 (cpp-macro-cont . +) 56 (cpp-macro . 57 [0]) 58 (inclass . +) 59 (stream-op . c-lineup-streamop) 60 (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist) 61 (arglist-cont c-lineup-gcc-asm-reg 0) 62 (arglist-intro . +) 63 (catch-clause . 0) 64 (else-clause . 0) 65 (do-while-closure . 0) 66 (label . 2) 67 (access-label . -) 68 (substatement-label . 2) 69 (substatement . +) 70 (statement-case-open . 0) 71 (statement-case-intro . +) 72 (statement-block-intro . +) 73 (statement-cont . +) 74 (statement . 0) 75 (brace-entry-open . 0) 76 (brace-list-entry . 0) 77 (brace-list-intro . +) 78 (brace-list-close . 0) 79 (brace-list-open . 0) 80 (block-close . 0) 81 (inher-cont . c-lineup-multi-inher) 82 (inher-intro . +) 83 (member-init-cont . c-lineup-multi-inher) 84 (member-init-intro . +) 85 (annotation-var-cont . +) 86 (annotation-top-cont . 0) 87 (topmost-intro-cont . c-lineup-topmost-intro-cont) 88 (topmost-intro . 0) 89 (knr-argdecl . 0) 90 (func-decl-cont . +) 91 (inline-close . 0) 92 (inline-open . +) 93 (class-close . 0) 94 (class-open . 0) 95 (defun-block-intro . +) 96 (defun-close . 0) 97 (defun-open . 0) 98 (string . c-lineup-dont-change) 99 (arglist-close . c-lineup-arglist) 100 (substatement-open . 0) 101 (case-label . 0) 102 (block-open . 0) 103 (c . 2) 104 (comment-intro . 0) 105 (knr-argdecl-intro . -))) 106 (fill-column . 120)))) 107