Message ID | 20170607234531.28889-1-eric@anholt.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Just when I was looking at the hell of writing a .dir-locals.el... Editorconfig was new to me, thanks for this! On Wed, Jun 07, 2017 at 04:45:30PM -0700, Eric Anholt wrote: > This makes my emacs default to consistent indentation for the project. > > Signed-off-by: Eric Anholt <eric@anholt.net> > --- > .editorconfig | 9 +++++++++ > 1 file changed, 9 insertions(+) > create mode 100644 .editorconfig > > diff --git a/.editorconfig b/.editorconfig > new file mode 100644 > index 000000000000..bdfebacaf4cd > --- /dev/null > +++ b/.editorconfig > @@ -0,0 +1,9 @@ Add a header that links to the website like in Mesa's .editorconfig: # To use this config on you editor, follow the instructions at: # http://editorconfig.org Also add root = true With those, Reviewed-by: Petri Latvala <petri.latvala@intel.com>
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..bdfebacaf4cd --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +[*] +tab_width = 8 + +[{Makefile*,*.mk}] +indent_style = tab + +[*.{c,h,cpp,hpp,cc,hh}] +indent_style = tab +indent_size = 8
This makes my emacs default to consistent indentation for the project. Signed-off-by: Eric Anholt <eric@anholt.net> --- .editorconfig | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .editorconfig