diff --git a/.editorconfig b/.editorconfig
index 2b77e74942476aa62872525728e3e51717387d6c..2d91b72acd52af91d930fc4932b7b0d6f13a1275 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -12,3 +12,7 @@ end_of_line = lf
 
 [Makefile]
 indent_style = tab
+
+[*.c]
+indent_style = space
+indent_size = 2