emacs-devel
[Top][All Lists]
Advanced

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

Re: treesit indentation "blinking"


From: Eli Zaretskii
Subject: Re: treesit indentation "blinking"
Date: Sun, 02 Apr 2023 08:31:41 +0300

> From: Yuan Fu <casouri@gmail.com>
> Date: Sat, 1 Apr 2023 18:49:46 -0700
> Cc: theodor thornhill <theo@thornhill.no>,
>  geza.herman@gmail.com,
>  Daniel Colascione <dancol@dancol.org>,
>  emacs-devel@gnu.org
> 
> If you enable electric-pair-mode so that the brackets are always balanced, 
> then both c-ts-mode and c++-ts-mode should work fine.
> 
> Trying to solve this with heuristics is going against to grain, IMO. I think 
> it’s acceptable to say that users of ts-modes should enabled 
> electric-pair-mode, since it’s based on a parser, after all.

I'm okay with that conclusion.  An alternative is to use "C-c C-q"
after typing the final brace.



reply via email to

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