Re: c-ts-mode: How to set indent-style in dir-locals
Stéphane Marks <[email protected]> Tue, 19 May 2026 07:09:52 -0400
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <CAN+1HbpFbCAncm47h61_bZ+_zUtrNmgx5h1Boj5=06vkesvsKg@mail.gmail.com> |
On Mon, May 18, 2026 at 10:26 PM Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]> wrote: > समीर सिंह Sameer Singh <[email protected]> writes: > > > `setopt-local' does not work with c-ts-mode-indent-style it > > complains: > > > > File local-variables error: (error The setter of > > c-ts-mode-indent-style does not support setopt-local) > > Then I am relieved, because this is not implemented yet for this option. > Michael. > This jogged my memory of how setopt-local works. There is only one setter that was taught to honor it, so far. Sameer, how about this in your .dir-locals.el file that does the c-ts-mode-indent-style setter dance? ( (c-mode . ((eval . ((progn (setq-local c-ts-mode-indent-style 'bsd) (c-ts-mode-set-style c-ts-mode-indent-style )))))) )