From b9684941c4d2b597629a4adec47d0b245fd5ae5d Mon Sep 17 00:00:00 2001 From: TheDaemoness Date: Wed, 20 May 2020 19:46:13 +0000 Subject: [PATCH 1/2] Create .editorconfig [Most major editors](https://editorconfig.org/#download) support EditorConfig for declaring per-file per-project indentation rules. It costs almost nothing to maintain, and it makes it easier to follow the coding styles already used in kitty. --- .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..2e80b4063 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +indent_style = spaces +indent_size = 4 +end_of_line = lf +trim_trailing_whitespace = true + +[{Makefile,*.terminfo}] +indent_style = tab + +# Autogenerated with tabs. +[kitty/{unicode-data.c,emoji.wcwidth-std.h}] +indent_style = tab From 73140198323e8e148d2cff591961bf81628ff25a Mon Sep 17 00:00:00 2001 From: TheDaemoness Date: Wed, 20 May 2020 20:10:37 +0000 Subject: [PATCH 2/2] Fixed a typo and added some missing files. --- .editorconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 2e80b4063..8f44e9c47 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,6 +9,13 @@ trim_trailing_whitespace = true [{Makefile,*.terminfo}] indent_style = tab -# Autogenerated with tabs. -[kitty/{unicode-data.c,emoji.wcwidth-std.h}] +# Autogenerated files with tabs below this line. + +[kitty/{unicode-data.c,emoji.h,wcwidth-std.h}] +indent_style = tab + +[kittens/unicode_input/names.h] +indent_style = tab + +[glfw/wayland-*-protocol.{c,h}] indent_style = tab