diff options
author | Eric Anholt <eric@anholt.net> | 2017-06-07 13:26:48 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-06-12 15:34:29 -0700 |
commit | cc9137762cfe05f5508e614c1dcedf3ff9067399 (patch) | |
tree | a836cd8a6faa1cc0fcde333a44c01d5ea0ed5859 /.editorconfig | |
parent | a6458241594320e87ff54a01a183dd3a071e032e (diff) |
Add an editorconfig file for the basics of igt style.
This makes my emacs default to consistent indentation for the project.
v2: Set root mode, and Mesa's note for more information on
editorconfig.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..7b7f1375 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# To use this config in your editor, follow the instructions at: +# http://editorconfig.org + +root = true + +[*] +tab_width = 8 + +[{Makefile*,*.mk}] +indent_style = tab + +[*.{c,h,cpp,hpp,cc,hh}] +indent_style = tab +indent_size = 8 |