From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Louis-Guillaume Gagnon Newsgroups: gmane.emacs.help Subject: c++-ts-mode and namespace indentation Date: Thu, 24 Aug 2023 09:04:55 +0000 Message-ID: <8384fc61-39c4-4cd1-9adb-1f4eb6b2a68f@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12026"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 25 19:41:51 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qZaog-0002vO-NQ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 25 Aug 2023 19:41:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZao4-000319-5b; Fri, 25 Aug 2023 13:41:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZ6HB-0000zk-W8 for help-gnu-emacs@gnu.org; Thu, 24 Aug 2023 05:05:15 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZ6H9-0006Ub-T0 for help-gnu-emacs@gnu.org; Thu, 24 Aug 2023 05:05:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1692867908; x=1693127108; bh=2rIWcAekPDmNXHrwFzQ2D4D/7n9jQrar1r1akDofugk=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=ynnaTHT7uCI6F9rjo9x3wgUBxuBUN61hwh4vr4hdgqy7TLt0VrzRlRF7uFMghvkMZ rMI5IoG8PFP1i0lGGrd6VZ8YLa76nHH4VO4anRyAtjLtAcGlv88ou0WgtBTyx58f9l USQhLlszpRrGMml77cK8owXV8VzQaP2qlrOkPFyTYNqL1WCSip/SujKhw97Vr94ec0 HVgAaSUQpHE8+zS2MriPc0k9t5zwAvlvqYbpTZls4JLZmdhD7ZqOoRzv8pm6BwuYVe FrV+Fmk0ZlgHbympJDhvja0ZiKeyz/r2tm/oM6XMBae7EFpQlOLaWXHcGbjr7j3zP+ tOu9nVuwQzRNQ== Feedback-ID: 19925570:user:proton Received-SPF: pass client-ip=185.70.43.16; envelope-from=gagnonlg@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 25 Aug 2023 13:41:09 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144963 Archived-At: Hello, 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.=C2=A0 I previously achieved this with (c-set-offset 'innamespace 0); Can anyone spell out how to achieve this under treesitter? Thanks! L-G