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