summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-24 20:51:30 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-24 20:53:38 -0700
commit0ed2541d6dc3ff31126915c6ea59d92f0c23acd1 (patch)
treee84c7c6d1ef9935383ea150c06835be0199b892f /.editorconfig
parentab254b555e02791e8d46cac4d1d8e75682c67671 (diff)
Added .editorconfig.
Thanks to @lipis. Closes #50. This may need tweaking.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..f0f2032
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,17 @@
+# editorconfig.org
+
+root = true
+
+[*]
+end_of_line = lf
+charset = utf-8
+insert_final_newline = true
+
+[*.js]
+trim_trailing_whitespace = true
+indent_style = space
+indent_size = 2
+
+[{*.c,Makefile}]
+trim_trailing_whitespace = true
+indent_style = tab