diff --git a/home/clang-format b/home/clang-format new file mode 100644 index 0000000..0b174ac --- /dev/null +++ b/home/clang-format @@ -0,0 +1,28 @@ +BasedOnStyle: Google +AccessModifierOffset: -4 +AlignArrayOfStructures: Right +AlignConsecutiveAssignments: true +AlignConsecutiveBitFields: true +AlignConsecutiveMacros: true +AllowShortBlocksOnASingleLine: Empty +AllowShortCaseLabelsOnASingleLine: true +AllowShortEnumsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Inline +BinPackArguments: false +BinPackParameters: false +BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBraces: WebKit +BreakConstructorInitializers: BeforeComma +BreakInheritanceList: BeforeComma +ContinuationIndentWidth: 8 +DerivePointerAlignment: false +IndentCaseLabels: false +IndentPPDirectives: AfterHash +IndentWidth: 4 +PPIndentWidth: 2 +PackConstructorInitializers: CurrentLine +PointerAlignment: Right +ReferenceAlignment: Pointer +SeparateDefinitionBlocks: Always +SortUsingDeclarations: true +SpaceAfterTemplateKeyword: false diff --git a/install.sh b/install.sh index abf1255..d58f3c0 100755 --- a/install.sh +++ b/install.sh @@ -137,6 +137,7 @@ execute() { heading 'create links' make_link "$DESTDIR/.XCompose" "$dotfiles/home/XCompose" make_link "$DESTDIR/.bin" "$dotfiles/bin" + make_link "$DESTDIR/.clang-format" "$dotfiles/home/clang-format" make_link "$DESTDIR/.config" "$dotfiles/config" make_link "$DESTDIR/.editorconfig" "$dotfiles/home/editorconfig" make_link "$DESTDIR/.hushlogin" "$dotfiles/home/hushlogin"