From 812c8bc14a4214e9d0970e7a333be72e745137b2 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Fri, 6 Nov 2020 05:12:29 +0300 Subject: [PATCH] Add editorconfig This commit also purges .gitignore, since the files mentioned in it should be handled by global ignore file. Fixes #4378. --- .editorconfig | 18 ++++++++++++++++++ .gitignore | 37 +------------------------------------ Makefile | 6 +++--- 3 files changed, 22 insertions(+), 39 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..303e9296 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +trim_trailing-whitespace = true +insert_final_newline = true + +[*.{glsl,rs,toml}] +indent_style = space +indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 + +[Makefile] +indent_style = tab diff --git a/.gitignore b/.gitignore index addaae1b..eb5a316c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,36 +1 @@ -# Rust build directory -**/target - -# Rust subcrate lockfiles -*/Cargo.lock - -# Temp files -.idea -.vscode -*.iml -*~ - -# vim temporary files -*.swp - -# other ignores -*.DS_Store -======= - -# Snapcraft files -stage -prime -parts -*.snap -*.pyc -alacritty_*_source.tar.bz2 - -# WiX files -/Wix.3.11.1 -*.msi -*.wixobj -*.wixpdb - -# Perf tools -perf.data* -flamegraph.svg +target diff --git a/Makefile b/Makefile index 3b429936..85983fae 100644 --- a/Makefile +++ b/Makefile @@ -6,14 +6,14 @@ MANPAGE = $(ASSETS_DIR)/alacritty.man TERMINFO = $(ASSETS_DIR)/alacritty.info COMPLETIONS_DIR = $(ASSETS_DIR)/completions COMPLETIONS = $(COMPLETIONS_DIR)/_alacritty \ - $(COMPLETIONS_DIR)/alacritty.bash \ - $(COMPLETIONS_DIR)/alacritty.fish + $(COMPLETIONS_DIR)/alacritty.bash \ + $(COMPLETIONS_DIR)/alacritty.fish APP_NAME = Alacritty.app APP_TEMPLATE = $(ASSETS_DIR)/osx/$(APP_NAME) APP_DIR = $(RELEASE_DIR)/osx APP_BINARY = $(RELEASE_DIR)/$(TARGET) -APP_BINARY_DIR = $(APP_DIR)/$(APP_NAME)/Contents/MacOS +APP_BINARY_DIR = $(APP_DIR)/$(APP_NAME)/Contents/MacOS APP_EXTRAS_DIR = $(APP_DIR)/$(APP_NAME)/Contents/Resources APP_COMPLETIONS_DIR = $(APP_EXTRAS_DIR)/completions