OSDN Git Service

Add .editorconfig
authorThierry Reding <treding@nvidia.com>
Wed, 21 Dec 2016 17:08:29 +0000 (18:08 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 12 Jan 2017 21:40:59 +0000 (22:40 +0100)
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>
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..893b7be
--- /dev/null
@@ -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