; * lisp/progmodes/c-ts-mode.el (c++-ts-mode): Add some notice.

This commit is contained in:
Yuan Fu 2023-04-01 23:14:15 -07:00
parent 89e337c3fc
commit fb2c440920
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -996,7 +996,11 @@ To use tree-sitter C/C++ modes by default, evaluate
(add-to-list \\='major-mode-remap-alist
\\='(c-or-c++-mode . c-or-c++-ts-mode))
in your configuration."
in your configuration.
Since this mode uses a parser, unbalanced brackets might cause
some breakage in indentation/fontification. Therefore, it's
recommended to enable `electric-pair-mode' with this mode."
:group 'c++
:after-hook (c-ts-mode-set-modeline)