Skip to content

Instantly share code, notes, and snippets.

@rchacon
Last active February 13, 2016 05:12
Show Gist options
  • Save rchacon/aa4afd227f49e1142f49 to your computer and use it in GitHub Desktop.
Save rchacon/aa4afd227f49e1142f49 to your computer and use it in GitHub Desktop.
Create .editorconfig in current directory. Add sym link to script: `ln -s <path to editorconfig script> /usr/local/bin/editorconfig`
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
# Set default charset
[*.{js,py}]
charset = utf-8
# 4 space indentation
[*.{php,py}]
indent_size = 4
# 2 space indentation
[*.{css,html,js,json,sh,yml,yaml}]
indent_size = 2
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment