summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-11-23 11:26:43 +0100
committerChristian Hesse <mail@eworm.de>2015-11-23 12:32:59 +0100
commitdb787e79264e0bb996528b505377a9f935b1e186 (patch)
tree52dc74dc4495e6e215dff564f50bb2f6b86f5b15 /.editorconfig
parentaedf698f3e93b2d376e03b85c471f0f54ccda50d (diff)
downloadsystemd-db787e79264e0bb996528b505377a9f935b1e186.tar.gz
add editorconfig configuration
We want indention with spaces, so specify in editorconfig. http://editorconfig.org/
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..70b6c0f139
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,17 @@
+# EditorConfig configuration for systemd
+# http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file, utf-8 charset
+[*]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+charset = utf-8
+
+# match config files, set indent to spaces with width of eight
+[*.{c,h}]
+indent_style = space
+indent_size = 8