]> git.sur5r.net Git - i3/i3/commitdiff
Add .editorconfig (see editorconfig.org) (#2943)
authorMichael Stapelberg <stapelberg@users.noreply.github.com>
Wed, 13 Sep 2017 16:38:27 +0000 (18:38 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2017 16:38:27 +0000 (18:38 +0200)
This file uses the same settings which we currently have in our vim modeline,
but can be picked up by many different editors without having to add and
maintain editor-specific modelines in all of our source files.

.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..c25745f
--- /dev/null
@@ -0,0 +1,11 @@
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+
+[*.{c,h}]
+indent_style = space
+indent_size = 4
+trim_trailing_whitespace = true