summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.editorconfig20
1 files changed, 20 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..7e589a9
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,20 @@
+# Rules here are following TIP 247: Tcl/Tk Engineering Manual
+# http://www.tcl.tk/cgi-bin/tct/tip/247
+
+# Topmost EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+
+# Matches multiple files with brace expansion notation
+# Set default charset
+[*.{c,h}]
+charset = utf-8
+indent_style = space
+indent_size = 4
+tab_width = 8
+trim_trailing_whitespace = true
+