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

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

tab-width ignored in .dir-locals.el


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

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.

What am I doing wrong?

I tried adding (subdirs . t) to the first list, but that made no difference.




reply via email to

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