Add .editorconfig and .dir-locals.el

This should hopefully get things more automatic for more
editors.

I didn't find in a quick search how to teach vim to DTRT by default.

Closes: #56
Approved by: rhatdan
This commit is contained in:
Colin Walters 2016-05-06 10:37:19 -04:00 committed by Colin Walters (automation)
parent 4c18c78bf5
commit 8c24bf04d7
2 changed files with 7 additions and 0 deletions

1
.dir-locals.el Normal file
View File

@ -0,0 +1 @@
((c-mode . ((indent-tabs-mode . nil) (c-file-style . "gnu"))))

6
.editorconfig Normal file
View File

@ -0,0 +1,6 @@
[*.[ch]]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
indent_brace_style = gnu