summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorBernie Innocenti <codewiz@google.com>2018-07-02 18:55:36 +0900
committerBernie Innocenti <codewiz@google.com>2018-07-02 19:43:23 +0900
commiteec17ec50be7bd79fc7276f796bdc28a2a590dde (patch)
treed450dcd087f803fc3327c7a9f4ab8c2685cabbb4 /.editorconfig
parent453914f871e7c9fa4130a46a03e7defaf1bd7718 (diff)
downloadnetd-eec17ec50be7bd79fc7276f796bdc28a2a590dde.tar.gz
Add top-level .editorconfig for netd
See https://editorconfig.org/ for all the details. Test: tested with nvim 0.3 + editorconfig plugin Change-Id: I9b5d6b6579d25a3b25ee4f8c9a9b810bc0946904
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000..9777c605
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,13 @@
+# To use this config with your editor, follow the instructions at:
+# https://editorconfig.org
+
+root = true
+
+[*]
+charset = utf-8
+insert_final_newline = true
+end_of_line = lf
+
+[*.{c,h,cpp,hpp,cc,sh,bp}]
+indent_style = space
+indent_size = 4