|
| 1 | +; Adapted from PETSc |
| 2 | + |
| 3 | +((nil . ((indent-tabs-mode . nil) |
| 4 | + (show-trailing-whitespace . t))) |
| 5 | + |
| 6 | + (c++-mode . ((c-tab-always-indent . t) |
| 7 | + (fill-column . 100) |
| 8 | + (c-basic-offset . 2) |
| 9 | + (c-comment-only-line-offset . 0) |
| 10 | + (c-hanging-braces-alist . ((substatement-open after) |
| 11 | + (brace-list-open after) |
| 12 | + (brace-entry-open) |
| 13 | + (defun-open after) |
| 14 | + (class-open after) |
| 15 | + (inline-open after) |
| 16 | + (block-open after) |
| 17 | + (block-close . c-snug-do-while) |
| 18 | + (statement-case-open after) |
| 19 | + (substatement after))) |
| 20 | + (c-hanging-colons-alist . ((member-init-intro before) |
| 21 | + (inher-intro) |
| 22 | + (case-label after) |
| 23 | + (label after) |
| 24 | + (access-label after))) |
| 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 | + (friend . 0) |
| 50 | + (cpp-define-intro c-lineup-cpp-define +) |
| 51 | + (cpp-macro-cont . +) |
| 52 | + (cpp-macro . [0]) |
| 53 | + (inclass . ++) |
| 54 | + (stream-op . c-lineup-streamop) |
| 55 | + (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist) |
| 56 | + (arglist-cont c-lineup-gcc-asm-reg 0) |
| 57 | + (arglist-intro . +) |
| 58 | + (catch-clause . 0) |
| 59 | + (else-clause . 0) |
| 60 | + (do-while-closure . 0) |
| 61 | + (label . 2) |
| 62 | + (access-label . -) |
| 63 | + (substatement-label . 2) |
| 64 | + (substatement . +) |
| 65 | + (statement-case-open . 0) |
| 66 | + (statement-case-intro . +) |
| 67 | + (statement-block-intro . +) |
| 68 | + (statement-cont . +) |
| 69 | + (statement . 0) |
| 70 | + (brace-entry-open . 0) |
| 71 | + (brace-list-entry . 0) |
| 72 | + (brace-list-intro . +) |
| 73 | + (brace-list-close . 0) |
| 74 | + (brace-list-open . 0) |
| 75 | + (block-close . 0) |
| 76 | + (inher-cont . c-lineup-multi-inher) |
| 77 | + (inher-intro . +) |
| 78 | + (member-init-cont . c-lineup-multi-inher) |
| 79 | + (member-init-intro . +) |
| 80 | + (annotation-var-cont . +) |
| 81 | + (annotation-top-cont . 0) |
| 82 | + (topmost-intro-cont . c-lineup-topmost-intro-cont) |
| 83 | + (topmost-intro . 0) |
| 84 | + (knr-argdecl . 0) |
| 85 | + (func-decl-cont . +) |
| 86 | + (inline-close . 0) |
| 87 | + (inline-open . 0) |
| 88 | + (class-close . 0) |
| 89 | + (class-open . 0) |
| 90 | + (defun-block-intro . +) |
| 91 | + (defun-close . 0) |
| 92 | + (defun-open . 0) |
| 93 | + (string . c-lineup-dont-change) |
| 94 | + (arglist-close . c-lineup-arglist) |
| 95 | + (substatement-open . 0) |
| 96 | + (case-label . 0) |
| 97 | + (block-open . 0) |
| 98 | + (c . 1) |
| 99 | + (comment-intro . 0) |
| 100 | + (knr-argdecl-intro . -))) |
| 101 | + ))) |
0 commit comments