[Mesa-dev] [RFC] Coding style scripts (Was Re: [PATCH 1/2] gallium: replace [0-9]*.f with [0-9]*.0f)
Jose Fonseca
jfonseca at vmware.com
Sat Jul 2 12:13:34 UTC 2016
On 02/07/16 10:38, Michel Dänzer wrote:
> On 01.07.2016 23:11, Emil Velikov wrote:
>> On 28 June 2016 at 04:00, Michel Dänzer <michel at daenzer.net> wrote:
>>>
>>> FWIW, +1 for adding .editorconfig files corresponding to the existing
>>> .dir-locals.el files as a first step, so users of other editors can also
>>> get the benefit of their code getting formatted correctly by default.
>>>
>> Sounds reasonable. Can I volunteer you for testing them in VIM, since
>> my editor does not have work with .editorconfig(s) yet :-)
>
> Somebody who usually uses vim would be better suited for that.
I use Vim. I can test it.
FWIW, below is the root .editorconfig I use with Mesa. It's not
complete (it covers the files types I tend to touch.)
Jose
$ cat .editorconfig
# http://editorconfig.org
root = true
[*.{c,h,cpp,hpp}]
indent_style = space
indent_size = 3
[*.{markdown,md}]
trim_trailing_whitespace = false
[*.yml]
indent_style = space
indent_size = 2
[*.py,SCons*]
indent_style = space
indent_size = 4
[{Makefile,*.mk}]
indent_style = tab
indent_size = 8
tab_width = 8
More information about the mesa-dev
mailing list