From: Eric Anholt Date: Fri, 10 May 2019 00:13:14 +0000 (-0700) Subject: freedreno: Make emacs indent the way robclark's eclipse does. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0734905d9a21623252b8e8a177509f3526ba1bdb;p=mesa.git 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 --- 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 . ++) + ) ) )