summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2019-05-09 17:13:14 -0700
committerEric Anholt <eric@anholt.net>2019-05-13 15:37:01 -0700
commit0734905d9a21623252b8e8a177509f3526ba1bdb (patch)
treed5002bfce522398e651fcc17eaad7c2e271a84d6 /src
parent257999d9a8108ba9b63315137015ee0e67629115 (diff)
freedreno: Make emacs indent the way robclark's eclipse does.
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>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/.dir-locals.el3
-rw-r--r--src/gallium/drivers/freedreno/.dir-locals.el3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/freedreno/.dir-locals.el b/src/freedreno/.dir-locals.el
index b0e90fcbd53..3023c51e8cf 100644
--- a/src/freedreno/.dir-locals.el
+++ b/src/freedreno/.dir-locals.el
@@ -4,5 +4,8 @@
(c-basic-offset . 4)
(c-file-style . "k&r")
(fill-column . 78)
+ (c-file-offsets
+ (arglist-cont-nonempty . ++)
+ )
)
)
diff --git a/src/gallium/drivers/freedreno/.dir-locals.el b/src/gallium/drivers/freedreno/.dir-locals.el
index b0e90fcbd53..3023c51e8cf 100644
--- a/src/gallium/drivers/freedreno/.dir-locals.el
+++ b/src/gallium/drivers/freedreno/.dir-locals.el
@@ -4,5 +4,8 @@
(c-basic-offset . 4)
(c-file-style . "k&r")
(fill-column . 78)
+ (c-file-offsets
+ (arglist-cont-nonempty . ++)
+ )
)
)