summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2023-10-10 19:56:23 +0300
committerTeemu Ikonen <tpikonen@mailbox.org>2023-10-22 18:57:59 +0300
commit8fd18c9363f1bbcb200e9cc142a91ebe6c2ccc8d (patch)
treeccb4ae838af35c57cdde24d61c52df2a698e121c
parent4af4c266a573012b9fce5224afed9f3c7814963c (diff)
Add .editorconfig
-rw-r--r--.editorconfig24
1 files changed, 24 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..56ff6a0
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,24 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+trim_trailing_whitespace = true
+
+[*.[ch]]
+indent_size = 8
+indent_style = space
+insert_final_newline = true
+# For the legacy tabs which still exist in the code:
+tab_width = 8
+
+[*.xml]
+indent_size = 2
+indent_style = space
+
+[meson.build]
+indent_size = 4
+indent_style = space
+
+[*.md]
+max_line_length = 80