From 157646f54cd010c8c884998319954006260f960e Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 10 Feb 2023 11:51:53 +0600 Subject: etc changes related to code-style docs * Add a "Code Style" section in CONTRIBUTING * Move .clang-format to etc/ * Add a short comment on clang-format and editorconfig file --- .editorconfig | 2 ++ 1 file changed, 2 insertions(+) (limited to '.editorconfig') diff --git a/.editorconfig b/.editorconfig index 72b2e5e..cbc0f4b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,6 @@ # EditorConfig +# See this if your editor doesn't have built-in editorconfig support: +# https://editorconfig.org/#download # apply to all files [*] -- cgit v1.2.3 From 4df97db1cd566fab1ed927986e40cc4542e937c5 Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 10 Apr 2023 17:13:44 +0000 Subject: editorconfig: only apply to .c and .h files (#433) otherwise, it ends up applying to the manpage and git commit messages too. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/433 Reviewed-by: eylles Reviewed-by: explosion-mental --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.editorconfig') diff --git a/.editorconfig b/.editorconfig index cbc0f4b..bec9606 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,8 +2,8 @@ # See this if your editor doesn't have built-in editorconfig support: # https://editorconfig.org/#download -# apply to all files -[*] +# apply to all .c and .h files +[*.{c,h}] # top-most EditorConfig file root = true -- cgit v1.2.3