Add .editorconfig

This commit is contained in:
Cosmo Borsky 2019-01-29 16:28:29 -05:00 committed by Bastien Dejean
parent 00cf7896a4
commit 21a025b1e7
2 changed files with 15 additions and 0 deletions

12
.editorconfig Normal file
View file

@ -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

View file

@ -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