[Mesa-dev] [PATCH] swr: [rasterizer] add a .dir-locals.el to support 4-space indents

Ilia Mirkin imirkin at alum.mit.edu
Wed Nov 9 17:47:00 UTC 2016


On Wed, Nov 9, 2016 at 12:46 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> There's one in the repo root with a bunch of stuff. I think Andres
> just sent one to add the whitespace thing. Which actually suggests
> that I should probably just leave fill-column in this one. Thoughts?

er, that should of course have been "c-basic-offset", not "fill-column".

>
> On Wed, Nov 9, 2016 at 12:41 PM, Rowley, Timothy O
> <timothy.o.rowley at intel.com> wrote:
>> A couple good additions would be  “(indent-tabs-mode . nil)” and a
>> "(show-trailing-whitespace . t)”.
>>
>> With that, Reviewed-by: Tim Rowley <timothy.o.rowley at intel.com>
>>
>> On Nov 9, 2016, at 11:08 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>
>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>> ---
>> src/gallium/drivers/swr/rasterizer/.dir-locals.el | 6 ++++++
>> 1 file changed, 6 insertions(+)
>> create mode 100644 src/gallium/drivers/swr/rasterizer/.dir-locals.el
>>
>> diff --git a/src/gallium/drivers/swr/rasterizer/.dir-locals.el
>> b/src/gallium/drivers/swr/rasterizer/.dir-locals.el
>> new file mode 100644
>> index 0000000..63613a9
>> --- /dev/null
>> +++ b/src/gallium/drivers/swr/rasterizer/.dir-locals.el
>> @@ -0,0 +1,6 @@
>> +((prog-mode
>> +  (c-basic-offset . 4)
>> +  (c-file-style . "k&r")
>> +  (fill-column . 78)
>> +  )
>> + )
>> --
>> 2.7.3
>>
>>


More information about the mesa-dev mailing list