diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1f06e12 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig: https://editorconfig.org + +# Top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 +indent_style = tab +indent_size = 4 diff --git a/doc/CONTRIBUTING.md b/doc/CONTRIBUTING.md index 3c2040b..90f5604 100644 --- a/doc/CONTRIBUTING.md +++ b/doc/CONTRIBUTING.md @@ -17,11 +17,14 @@ I follow the [Linux Coding Style][4] with the following variations: - [Indent with tabs, align with spaces][5]. - Always use braces when using control structures. +An [EditorConfig][6] is included for convinience. + [1]: https://www.bell-labs.com/usr/dmr/www/cbook/ [2]: https://xcb.freedesktop.org/tutorial/ [3]: http://git-scm.com/documentation [4]: https://www.kernel.org/doc/Documentation/process/coding-style.rst [5]: http://lea.verou.me/2012/01/why-tabs-are-clearly-superior/ +[6]: https://editorconfig.org ## Donations