Created
August 22, 2019 14:22
-
-
Save dekimir/17933c043ba06fc19ceef4a1a10443a5 to your computer and use it in GitHub Desktop.
Emacs cc-mode style for Seastar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(c-add-style "seastar" | |
'((c-basic-offset . 4) | |
(c-offsets-alist | |
(knr-argdecl-intro . 5) | |
(substatement-open . +) | |
(substatement-label . 0) | |
(label . 0) | |
(statement-case-open . +) | |
(inline-open . 0) | |
(brace-list-open . +) | |
(defun-open . 0) | |
(class-open . 0) | |
(func-decl-cont . +) | |
(knr-argdecl . 0) | |
(annotation-top-cont . 0) | |
(annotation-var-cont . +) | |
(inher-intro . +) | |
(block-open . 0) | |
(brace-entry-open . 0) | |
(statement-case-intro . +) | |
(substatement . +) | |
(case-label . 0) | |
(do-while-closure . 0) | |
(else-clause . 0) | |
(catch-clause . 0) | |
(arglist-cont c-lineup-gcc-asm-reg 0) | |
(stream-op . c-lineup-streamop) | |
(cpp-macro-cont . +) | |
(cpp-define-intro c-lineup-cpp-define +) | |
(friend . 0) | |
(objc-method-intro . | |
[0]) | |
(objc-method-args-cont . c-lineup-ObjC-method-args) | |
(objc-method-call-cont c-lineup-ObjC-method-call-colons c-lineup-ObjC-method-call +) | |
(extern-lang-open . 0) | |
(namespace-open . 0) | |
(module-open . 0) | |
(composition-open . 0) | |
(extern-lang-close . 0) | |
(module-close . 0) | |
(composition-close . 0) | |
(inextern-lang . +) | |
(inmodule . +) | |
(incomposition . +) | |
(template-args-cont c-lineup-template-args +) | |
(inlambda . 0) | |
(lambda-intro-cont . +) | |
(inexpr-statement . +) | |
(inexpr-class . +) | |
(topmost-intro . 0) | |
(innamespace . 0) | |
(inclass . +) | |
(class-close . 0) | |
(namespace-close . 0) | |
(topmost-intro-cont . 0) | |
(defun-block-intro . +) | |
(statement . 0) | |
(inline-close . 0) | |
(defun-close . 0) | |
(statement-block-intro . +) | |
(block-close . 0) | |
(arglist-intro . ++) | |
(access-label . /) | |
(statement-cont . ++) | |
(member-init-intro . ++) | |
(member-init-cont . -) | |
(brace-list-intro . +) | |
(brace-list-entry . 0) | |
(brace-list-close . 0) | |
(c . c-lineup-C-comments) | |
(inher-cont . c-lineup-multi-inher) | |
(string . -1000) | |
(comment-intro . c-lineup-comment) | |
(arglist-cont-nonempty . c-lineup-arglist) | |
(arglist-close . c-lineup-close-paren) | |
(cpp-macro . -1000)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are doing god's works