summary refs log tree commit diff
path: root/.editorconfig
diff options
context:
space:
mode:
author( <paren@disroot.org>2022-10-11 16:22:32 +0100
committerChristopher Baines <mail@cbaines.net>2022-11-05 11:26:55 +0100
commit6123f0e467aa5249f0a497c89ce434222702a535 (patch)
tree696cc80eeaa8b70038372391f0957d7f499ed470 /.editorconfig
parente67f9d7ab0c4bc957a918987a347a9ca429f3b0a (diff)
downloadguix-6123f0e467aa5249f0a497c89ce434222702a535.tar.gz
Add EditorConfig specification.
* .editorconfig: New file.

Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..bc68ff24c8
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,16 @@
+root = true
+
+[*.{c,h,cpp,hpp,el,scm,ac,am,m4,po}{,.in}]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+trim_trailing_whitespace = true
+
+[*.{c,h,cpp,hpp,ac,am,m4,el,scm}{,.in}]
+max_line_length = 85
+
+[*.{c,h,cpp,hpp,ac,m4,el,scm}{,.in}]
+indent_style = space
+
+[*.{c,h,cpp,hpp}{,.in}]
+indent_size = 4