Skip to content

Commit

Permalink
Add .editorconfig and .dir-locals.el
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cgwalters authored and cgwalters-bot committed May 6, 2016
1 parent 4c18c78 commit 8c24bf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
((c-mode . ((indent-tabs-mode . nil) (c-file-style . "gnu"))))
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*.[ch]]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
indent_brace_style = gnu

0 comments on commit 8c24bf0

Please sign in to comment.