projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89e337c
)
; * lisp/progmodes/c-ts-mode.el (c++-ts-mode): Add some notice.
author
Yuan Fu
<casouri@gmail.com>
Sun, 2 Apr 2023 06:14:15 +0000
(23:14 -0700)
committer
Yuan Fu
<casouri@gmail.com>
Sun, 2 Apr 2023 06:14:45 +0000
(23:14 -0700)
lisp/progmodes/c-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/c-ts-mode.el
b/lisp/progmodes/c-ts-mode.el
index e2705462025e3846a2b6ee9c210881e318cc104d..981c776637582dc153c54e974be079a0dc8816a1 100644
(file)
--- a/
lisp/progmodes/c-ts-mode.el
+++ b/
lisp/progmodes/c-ts-mode.el
@@
-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)