freedreno: Make emacs indent the way robclark's eclipse does.
authorEric Anholt <eric@anholt.net>
Fri, 10 May 2019 00:13:14 +0000 (17:13 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 13 May 2019 22:37:01 +0000 (15:37 -0700)
The .editorconfig helps with the tabs, but we've got this
two-tabs-from-previous-indentation line continuation style that requires
whacking the c-file-offsets.  This will throw emacs warnings when first
opening a file in the directory, press '!' to shut it up for the future.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/.dir-locals.el
src/gallium/drivers/freedreno/.dir-locals.el

index b0e90fcbd53c28cb317a547765898b3ea401bc66..3023c51e8cf8cda93e21bb601dcdc8578171ca81 100644 (file)
@@ -4,5 +4,8 @@
   (c-basic-offset . 4)
   (c-file-style . "k&r")
   (fill-column . 78)
+  (c-file-offsets
+   (arglist-cont-nonempty . ++)
+   )
   )
  )
index b0e90fcbd53c28cb317a547765898b3ea401bc66..3023c51e8cf8cda93e21bb601dcdc8578171ca81 100644 (file)
@@ -4,5 +4,8 @@
   (c-basic-offset . 4)
   (c-file-style . "k&r")
   (fill-column . 78)
+  (c-file-offsets
+   (arglist-cont-nonempty . ++)
+   )
   )
  )