From bf2bbaf31487a3935f1a27dc51886d6f53c3d73d Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Mon, 17 Apr 2023 21:40:16 +0200 Subject: 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 --- .editorconfig | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .editorconfig 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 -- cgit v1.2.3