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

Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]> Tue, 19 May 2026 14:16:55 +0200
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
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?


Michael.