From 7788f91dd501475b40ab2a69b1c877992949e779 Mon Sep 17 00:00:00 2001 From: Paul Morgan Date: Tue, 26 Apr 2016 00:40:35 +0000 Subject: [PATCH] make life easier for people who have EditorConfig plugin If a person has the EditorConfig plugin, this overrides default editor configs to play nicely with go files and the Makefile. --- .editorconfig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..fa98abe0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +; This file is for unifying the coding style for different editors and IDEs. +; Plugins are available for notepad++, emacs, vim, gedit, +; textmate, visual studio, and more. +; +; See http://editorconfig.org for details. + +# Top-most EditorConfig file. +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.go] +indent_style = tab + +[Makefile] +indent_style = tab