From 874ae99576498b8870a5efbac70f997013e9e67e Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sat, 27 Nov 2021 18:42:38 +0100 Subject: [PATCH] chore(editorconfig): add configuration --- .dotbot.conf.yaml | 1 + editorconfig | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 editorconfig diff --git a/.dotbot.conf.yaml b/.dotbot.conf.yaml index 3765fb1..f6ac10c 100644 --- a/.dotbot.conf.yaml +++ b/.dotbot.conf.yaml @@ -8,6 +8,7 @@ ~/.ack: ack ~/.ag: ag ~/.ctags: ctags + ~/.editorconfig: editorconfig ~/.wget: wget ~/.zshrc: zshrc diff --git a/editorconfig b/editorconfig new file mode 100644 index 0000000..1e76b4d --- /dev/null +++ b/editorconfig @@ -0,0 +1,24 @@ +# http://editorconfig.org + +# Root file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{py,md,rst,sh,c,h}] +indent_size = 4 +indent_style = space + +[*.{md,markdown,pandoc}] +trim_trailing_whitespace = false + +[Makefile] +indent_style = tab +