summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2023-04-17 21:40:16 +0200
committerCarlos Maniero <carlosmaniero@gmail.com>2023-04-17 20:51:59 -0300
commitbf2bbaf31487a3935f1a27dc51886d6f53c3d73d (patch)
tree59a660b28e8663143ba4bbc5b191abd8afb4ee75
parenteab9986ba884921329fb8f9a1bd9a394cd240aaa (diff)
style: Add .editorconfig and set {.c,.h} default settings
This .editorconfig is cross editor settings that should be repected when creating a new file. We can also make the Makefile use tabs instead spaces in a future patch. Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
-rw-r--r--.editorconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..253aa77
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,9 @@
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+
+[*.{c, h}]
+indent_style = space
+indent_size = 2