diff mbox series

[v3,1/3] add .editorconfig file

Message ID 20191021203157.28524-2-adrian.freihofer@siemens.com
State Accepted
Headers show
Series lstat instead of stat | expand

Commit Message

Freihofer, Adrian Oct. 21, 2019, 8:31 p.m. UTC
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 .editorconfig | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 .editorconfig

Comments

Stefano Babic Oct. 22, 2019, 9:47 a.m. UTC | #1
On 21/10/19 22:31, Adrian Freihofer wrote:
> Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
> ---
>  .editorconfig | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>  create mode 100644 .editorconfig
> 
> diff --git a/.editorconfig b/.editorconfig
> new file mode 100644
> index 0000000..729d734
> --- /dev/null
> +++ b/.editorconfig
> @@ -0,0 +1,18 @@
> +# top-most EditorConfig file
> +root = true
> +
> +# Unix-style newlines with a newline ending every file
> +[*]
> +charset = utf-8
> +end_of_line = lf
> +insert_final_newline = true
> +
> +[CMakeLists.txt]
> +indent_size = 2
> +indent_style = space
> +
> +[*.{c,h}]
> +indent_brace_style = K&R
> +insert_final_newline = true
> +indent_style = tab
> +tab_width = 8
> 

No problem to add it, even if works if a plugin for the editor must be
loaded.

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..729d734
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,18 @@ 
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+
+[CMakeLists.txt]
+indent_size = 2
+indent_style = space
+
+[*.{c,h}]
+indent_brace_style = K&R
+insert_final_newline = true
+indent_style = tab
+tab_width = 8