Re: c-ts-mode: How to set indent-style in dir-locals

Stéphane Marks <[email protected]> Tue, 19 May 2026 08:25:32 -0400
Newsgroups gmane.emacs.help
Message-ID <CAN+1HboX_pcBvf8Qgr_4XyPU-Zn6UWusC+VwH0Qpo-B5mFfAKQ@mail.gmail.com>
On Tue, May 19, 2026 at 8:15 AM Michael Heerdegen via Users list for the
GNU Emacs text editor <[email protected]> wrote:

> Stéphane Marks <[email protected]> writes:
>
>
> > (
> >  (c-mode . ((eval . ((progn (setq-local c-ts-mode-indent-style 'bsd)
> >                             (c-ts-mode-set-style c-ts-mode-indent-style
> > ))))))
> >  )
>
> This should be equivalent to
>
> (
>  (c-mode . ((eval . ((c-ts-mode-set-style 'bsd)))))
>  )
>
> because `c-ts-mode-set-style' already sets `c-ts-mode-indent-style'
> buffer-locally - right?
>

Just checked the c-ts source code and that's right.  Simpler.