From 4cb075cc3be2f7619cf99acd6d593f2b3d331568 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 15 Jul 2019 22:37:04 +0200 Subject: [PATCH] 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). --- .editorconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..1164b5c1a --- /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 -- 2.47.2