Add .editorconfig (#810)
authorEbrahim Byagowi <ebrahim@gnu.org>
Wed, 21 Feb 2018 18:43:58 +0000 (22:13 +0330)
committerGitHub <noreply@github.com>
Wed, 21 Feb 2018 18:43:58 +0000 (22:13 +0330)
More information: http://editorconfig.org/

.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..708188a
--- /dev/null
@@ -0,0 +1,18 @@
+root = true
+
+[*]
+charset = utf-8
+trim_trailing_whitespace = true
+end_of_line = lf
+insert_final_newline = true
+
+[*.{c,cc,h,hh}]
+indent_size = 2
+indent_style = space
+tab_width = 8
+
+[*.{py,sh}]
+indent_style = tab
+
+[{CMakeLists.txt,*.cmake}]
+indent_size = 2