From d5a9ffb0c1d0c05eb090b8d86fd2bb8a1e61a29d Mon Sep 17 00:00:00 2001 From: Branimir Karadzic Date: Thu, 6 Nov 2014 20:29:58 -0800 Subject: [PATCH] Added .editorconfig. --- .editorconfig | 10 ++++++++++ .gitattributes | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9e3e77c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +[*] +indent_style = tab +indent_size = 4 +end_of_line = LF +max_line_length = 100 + +insert_final_newline = true + +[{*.c, *.cpp, *.sc, *.sh, *.lua, *.m, *.mm, *.mk, makefile}] +trim_trailing_whitespace = true diff --git a/.gitattributes b/.gitattributes index ddb52c3..e89cf41 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,11 @@ +*.c eol=lf *.cpp eol=lf *.h eol=lf *.sc eol=lf *.sh eol=lf +*.m eol=lf +*.mm eol=lf *.md eol=lf *.lua eol=lf +*.mk eol=lf +makefile eol=lf