summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2019-07-15 22:37:04 +0200
committerJoel Rosdahl <joel@rosdahl.net>2019-07-15 22:40:47 +0200
commit4cb075cc3be2f7619cf99acd6d593f2b3d331568 (patch)
treefb0f6a92359c97ef7d9246e97af2efd10693cedb
parentdd87757a1ff833b3b1f7f0d3d810c05d1536179e (diff)
downloadccache-4cb075cc3be2f7619cf99acd6d593f2b3d331568.tar.gz
Add .editorconfig
This makes GitHub show tabs as 2 spaces wide, which is what I like (and also what the code style assumes when counting characters for line widths).
-rw-r--r--.editorconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000..1164b5c1
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,17 @@
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+
+[*.{c,h}]
+indent_style = tab
+indent_size = 2
+
+[*.{bash,py}]
+indent_style = space
+indent_size = 4
+
+[Makefile]
+indent_style = tab