[pacman-dev] [PATCH] Add http://EditorConfig.org configuration
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> --- .editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..af9b70d1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# EditorConfig configuration for pacman +# http://EditorConfig.org + +# Top-most EditorConfig file +root = true + +# Unix-style newlines without trailing whitespaces, but with a newline +# ending every file, utf-8 charset, set indent to tabs +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 +indent_style = tab +indent_size = tab -- 2.11.0
On 04/01/17 15:29, Eli Schwartz wrote:
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> --- .editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .editorconfig
This will not be included. We have already rejected additions for several other editors (and the vim mode lines already annoy me...) A
Allan McRae <allan@archlinux.org> on Wed, 2017/01/04 15:35:
On 04/01/17 15:29, Eli Schwartz wrote:
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> --- .editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .editorconfig
This will not be included. We have already rejected additions for several other editors (and the vim mode lines already annoy me...)
You could remove vim mode lines and add that single file. ;) There is a vim plugin for editorconfig... (I should bring that to [community]...) -- main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/* Best regards my address: */=0;b=c[a++];) putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);}
On 01/04/2017 12:35 AM, Allan McRae wrote:
This will not be included. We have already rejected additions for several other editors (and the vim mode lines already annoy me...)
Okay. Will you accept a patch to add vim modelines to every single file in libmakepkg instead? Because it seems to be missing from there ;) and I only noticed the problem after writing a bunch of changes and noticing the diff was horribly screwed up. I didn't even realize that this project used vim modelines until you said something, but I haven't really looked at the C part. Personally, I saw EditorConfig and said "this is finally the solution". It lets you specify project coding standards in machine-readable format *once* and then editors get to interpret that, e.g. via editor plugins created by the EditorConfig project. But hey, standards proliferate and all that, I get where you are coming from too. Please do reconsider as Christian Hesse said, whether it makes sense to switch now, once, and get rid of modelines forever. But I am okay with either solution, so long as I don't have to deal with my default settings clashing with the project standards. -- Eli Schwartz
On 07/01/17 02:14, Eli Schwartz wrote:
On 01/04/2017 12:35 AM, Allan McRae wrote:
This will not be included. We have already rejected additions for several other editors (and the vim mode lines already annoy me...)
Okay. Will you accept a patch to add vim modelines to every single file in libmakepkg instead? Because it seems to be missing from there ;) and I only noticed the problem after writing a bunch of changes and noticing the diff was horribly screwed up.
I didn't even realize that this project used vim modelines until you said something, but I haven't really looked at the C part.
Personally, I saw EditorConfig and said "this is finally the solution". It lets you specify project coding standards in machine-readable format *once* and then editors get to interpret that, e.g. via editor plugins created by the EditorConfig project. But hey, standards proliferate and all that, I get where you are coming from too.
Please do reconsider as Christian Hesse said, whether it makes sense to switch now, once, and get rid of modelines forever. But I am okay with either solution, so long as I don't have to deal with my default settings clashing with the project standards.
I'd prefer no vim modelines and no editorconfig file. Allan (Aren't editors smart enough these days to recognise that files full with tab indents should be tab indented...)
participants (3)
-
Allan McRae
-
Christian Hesse
-
Eli Schwartz