help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c++-ts-mode and namespace indentation


From: Eli Zaretskii
Subject: Re: c++-ts-mode and namespace indentation
Date: Fri, 25 Aug 2023 20:50:19 +0300

> Date: Thu, 24 Aug 2023 09:04:55 +0000
> From: Louis-Guillaume Gagnon <gagnonlg@protonmail.com>
> 
> I've recently switched to the new c++-ts-mode (a game changer for source
> code featuring deeply nested templates!). I'm quite pleased with it, but
> I can't figure out how to make it such that a namespace block doesn't
> increase the indentation level.  I previously achieved this with
> (c-set-offset 'innamespace 0); Can anyone spell out how to achieve this
> under treesitter?

The c++-ts-mode doesn't support c-set-offset, which is specific to CC
Mode.  Try using c-ts-mode-indent-offset instead.  If that somehow
doesn't work, I suggest to submit a detailed bug report describing the
feature you'd like to see.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]