From 0e3024e858dd51b901c82e0f41fa2d498caccedd Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 9 Nov 2016 20:07:44 +0100 Subject: [PATCH] add global editorconfig --- bin/update-dotfiles.sh | 2 +- editorconfig | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 editorconfig diff --git a/bin/update-dotfiles.sh b/bin/update-dotfiles.sh index 5c683b5..81c3425 100755 --- a/bin/update-dotfiles.sh +++ b/bin/update-dotfiles.sh @@ -15,7 +15,7 @@ dir=$DOTFILES_DIR # list of files/folders to symlink in homedir -files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin" +files="aliases bashrc bash_profile bash_paths bash_prompt editorconfig exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin" # ---------------------------------------------------------------------- diff --git a/editorconfig b/editorconfig new file mode 100644 index 0000000..f16358e --- /dev/null +++ b/editorconfig @@ -0,0 +1,13 @@ +# +# Global EditorConfig file +# http://EditorConfig.org +# + +[*] +charset = utf-8 +indent_style = space +indent_size = 4 + +[{**.js,package.json,.travis.yml}] +indent_style = space +indent_size = 2