From a7d2fe9503266563133eb83c12648ebeaa8ca868 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 9 Jul 2021 16:12:36 +0200 Subject: [PATCH] Add editorconfig config file See https://editorconfig.org/ for details. (neo)vim: https://github.com/editorconfig/editorconfig-vim emacs: https://github.com/editorconfig/editorconfig-emacs Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- .editorconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..77dc7df6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +max_line_length = 80 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = false + +[*.{c,h}] +indent_style = space +indent_size = 4 +tab_width = 4 + +[{CMakeLists.txt,*.cmake}] +indent_style = space +indent_size = 4 +tab_width = 4