diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..d37de28e9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,32 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# Top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# Matches all C source files +[*.c] +indent_style = tab +tab_width = 2 +charset = utf-8 +trim_trailing_whitespace = true + +# Matches all header files +[*.h] +indent_style = tab +tab_width = 2 +charset = utf-8 +trim_trailing_whitespace = true + +# Matches Makefiles +[Makefile] +indent_style = tab + +# Matches Markdown files +[*.md] +max_line_length = off +trim_trailing_whitespace = false