all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: c++-ts-mode and namespace indentation
Date: Fri, 25 Aug 2023 20:50:19 +0300	[thread overview]
Message-ID: <83v8d3m2p0.fsf@gnu.org> (raw)
In-Reply-To: <8384fc61-39c4-4cd1-9adb-1f4eb6b2a68f@protonmail.com> (message from Louis-Guillaume Gagnon on Thu, 24 Aug 2023 09:04:55 +0000)

> 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	other threads:[~2023-08-25 17:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24  9:04 c++-ts-mode and namespace indentation Louis-Guillaume Gagnon
2023-08-25 17:50 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-06 15:37 xzhou@xeechou.net xzhou@xeechou.net
2023-09-15  2:56 ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83v8d3m2p0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.