unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* tab-width ignored in .dir-locals.el
@ 2021-11-12 17:56 Grant Edwards
  2021-11-12 18:15 ` Grant Edwards
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Edwards @ 2021-11-12 17:56 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-12 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-12 17:56 tab-width ignored in .dir-locals.el Grant Edwards
2021-11-12 18:15 ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).