help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: tab-width ignored in .dir-locals.el


From: Grant Edwards
Subject: Re: tab-width ignored in .dir-locals.el
Date: Fri, 12 Nov 2021 18:15:32 -0000 (UTC)
User-agent: slrn/1.0.3 (Linux)

On 2021-11-12, Grant Edwards <grant.b.edwards@gmail.com> wrote:

> How do you set the tab width for C-mode in a .dir-locals.el file?
>
> All the documentation I can find says this should work:
>
> ------------------------------------------------------------------------
> ((nil . ((indent-tabs-mode . t)
>          (tab-width . 4)
>               ))
>  (c-mode . ((c-file-style . "BSD")
>             (subdirs . t)
>                       ))
>  )
> ------------------------------------------------------------------------
>
> But when I edit a .c file, the tab width is always 8.

Aargh. I just realized it's not tab size that's wrong, it's the
c-file-offsets...






reply via email to

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