qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] .dir-locals.el: Explicitly set indentation leve


From: Thiago Jung Bauermann
Subject: Re: [Qemu-devel] [PATCH] .dir-locals.el: Explicitly set indentation level
Date: Mon, 04 Sep 2017 16:17:50 -0300

Thiago Jung Bauermann <address@hidden> writes:

> At least in some configurations, setting c-file-style is not enough to
> conform to the QEMU coding style, so explicitly set c-basic-offset as well.
>
> Signed-off-by: Thiago Jung Bauermann <address@hidden>
> ---
>
> My emacs was using indentation level of 8 spaces and this patch convinced
> it to use the correct value.
>
> I set c-basic-offset set to tab-width in my ~/.spacemacs which perhaps
> isn't the wisest thing to do, but since there's a .dir-locals.el we can
> make the editor always do the right thing.
>
>  .dir-locals.el | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/.dir-locals.el b/.dir-locals.el
> index 3ac0cfc6f0d6..8e47418c5996 100644
> --- a/.dir-locals.el
> +++ b/.dir-locals.el
> @@ -1,2 +1,3 @@
>  ((c-mode . ((c-file-style . "stroustrup")
> -         (indent-tabs-mode . nil))))
> +         (indent-tabs-mode . nil)
> +         (c-basic-offset . 4))))

Ping?

-- 
Thiago Jung Bauermann
IBM Linux Technology Center




reply via email to

[Prev in Thread] Current Thread [Next in Thread]