chore(editorconfig): add configuration

This commit is contained in:
Stefan Imhoff
2021-11-27 18:42:38 +01:00
parent c8342dbd20
commit 874ae99576
2 changed files with 25 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
~/.ack: ack ~/.ack: ack
~/.ag: ag ~/.ag: ag
~/.ctags: ctags ~/.ctags: ctags
~/.editorconfig: editorconfig
~/.wget: wget ~/.wget: wget
~/.zshrc: zshrc ~/.zshrc: zshrc

24
editorconfig Normal file
View File

@@ -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