From: Grant Edwards <grant.b.edwards@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: tab-width ignored in .dir-locals.el
Date: Fri, 12 Nov 2021 18:15:32 -0000 (UTC) [thread overview]
Message-ID: <smmb03$vbq$1@ciao.gmane.io> (raw)
In-Reply-To: smm9s1$f9v$1@ciao.gmane.io
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...
prev parent reply other threads:[~2021-11-12 18:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 17:56 tab-width ignored in .dir-locals.el Grant Edwards
2021-11-12 18:15 ` Grant Edwards [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='smmb03$vbq$1@ciao.gmane.io' \
--to=grant.b.edwards@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.