Add .editorconfig

This encodes the indentation style for libdrm and can be used with
various editors. See http://editorconfig.org for instructions.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
main
Thierry Reding 2016-12-21 18:08:29 +01:00
parent e17cad1994
commit 885624b0b9
1 changed files with 19 additions and 0 deletions

19
.editorconfig Normal file
View File

@ -0,0 +1,19 @@
# To use this config with your editor, follow the instructions at:
# http://editorconfig.org
root = true
[*]
charset = utf-8
insert_final_newline = true
[*.{c,h}]
indent_style = space
indent_size = 4
[{Makefile.*,*.mk}]
indent_style = tab
[*.m4]
indent_style = space
indent_size = 2