[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: |
Sat, 25 Mar 2023 17:42:41 +0300 |
> Date: Sat, 25 Mar 2023 14:42:50 +0200
> Cc: Daniel Colascione <dancol@dancol.org>, Yuan Fu <casouri@gmail.com>,
> emacs-devel@gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
>
> > I don't think this problem has anything to do with tree-sitter. It
> > would happen just as well in regular c++-mode if electric-indent-mode
> > were on by default there (but it isn't).
>
> The mode is globally on by default, but indeed the contents of
> electric-indent-chars are much shorter there.
>
> > So it's just the fact that electric-indent-mode is on by default
> > _and_ c-ts-mode.el does this:
> >
> > (setq-local electric-indent-chars (append "{}():;,#" electric-indent-chars))
> >
> > so people are getting what the mode author (and Emacs defaults) ask for:
> > electric indentation doing its thing.
>
> Good point: perhaps either this list should be revisited, or predicated
> (at runtime) somehow on electric-pair-mode being enabled.
Maybe the list of electric characters should be a defcustom?
- treesit indentation "blinking", Daniel Colascione, 2023/03/22
- Re: treesit indentation "blinking", Yuan Fu, 2023/03/22
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/22
- Re: treesit indentation "blinking", Yuan Fu, 2023/03/22
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/23
- Re: treesit indentation "blinking", Yuan Fu, 2023/03/23
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/23
- Re: treesit indentation "blinking", Dmitry Gutov, 2023/03/23
- Re: treesit indentation "blinking", João Távora, 2023/03/25
- Re: treesit indentation "blinking", Dmitry Gutov, 2023/03/25
- Re: treesit indentation "blinking",
Eli Zaretskii <=
- Re: treesit indentation "blinking", João Távora, 2023/03/25
- Re: treesit indentation "blinking", João Távora, 2023/03/28
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/28
- Re: treesit indentation "blinking", Eli Zaretskii, 2023/03/28
- Re: treesit indentation "blinking", João Távora, 2023/03/29
- Re: treesit indentation "blinking", Lynn Winebarger, 2023/03/29
- Re: treesit indentation "blinking", Herman , Géza, 2023/03/29
- Re: treesit indentation "blinking", João Távora, 2023/03/29
- Re: treesit indentation "blinking", Herman , Géza, 2023/03/30
- Re: treesit indentation "blinking", Eli Zaretskii, 2023/03/30