summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-04-09 00:54:22 +0200
committerFrediano Ziglio <fziglio@redhat.com>2020-04-09 07:38:08 +0100
commitd5a6f5e22449987dfa636ef181330be028d0d904 (patch)
tree86f3aafc60dc5d0750cfb78d5d6c084160e49526 /.editorconfig
parentd071e48bfb57e34f6c3ac7f0fec870dd5658deee (diff)
Replace emacs modeline with .editorconfig
emacs mode got removed with: git ls-tree HEAD -r --name-only | xargs sed -i '/Mode: C/d' Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
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 0000000..df489ca
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,17 @@
+# EditorConfig is a file format and collection of text editor plugins
+# for maintaining consistent coding styles between different editors
+# and IDEs. Most popular editors support this either natively or via
+# plugin.
+#
+# Check https://editorconfig.org for details.
+
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+
+[*.{c,h}]
+indent_style = space
+indent_size = 4