summaryrefslogtreecommitdiff
path: root/lisp/progmodes/c-ts-mode.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-01-29 15:22:20 +0200
committerEli Zaretskii <eliz@gnu.org>2023-01-29 15:22:20 +0200
commit197f994384cb37ae4ae7a771815bbe565d4ae242 (patch)
treeb7fb96de9388bff1ff129cc098d1a6a9b4d5ae19 /lisp/progmodes/c-ts-mode.el
parentb73539832d9c4e802925cb8f261a13473da383b3 (diff)
downloademacs-197f994384cb37ae4ae7a771815bbe565d4ae242.tar.gz
emacs-197f994384cb37ae4ae7a771815bbe565d4ae242.tar.bz2
emacs-197f994384cb37ae4ae7a771815bbe565d4ae242.zip
Document tree-sitter features in the user manual
* lisp/progmodes/c-ts-mode.el (c-ts-mode-map): Bind "C-c .", for consistency with CC mode. * lisp/treesit.el (treesit-font-lock-level): Doc fix. * doc/emacs/programs.texi (C Indent, Custom C Indent): Document the indentation features of 'c-ts-mode'. (Moving by Defuns): Document 'treesit-defun-tactic'. * doc/emacs/files.texi (Visiting): Document 'treesit-max-buffer-size'. * doc/emacs/display.texi (Traditional Font Lock) (Parser-based Font Lock): New subsections. * doc/emacs/emacs.texi (Top): Update top-level menu.
Diffstat (limited to 'lisp/progmodes/c-ts-mode.el')
-rw-r--r--lisp/progmodes/c-ts-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index b2f92b93193..612c41bf073 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -700,7 +700,8 @@ the semicolon. This function skips the semicolon."
(defvar-keymap c-ts-mode-map
:doc "Keymap for the C language with tree-sitter"
:parent prog-mode-map
- "C-c C-q" #'c-ts-mode-indent-defun)
+ "C-c C-q" #'c-ts-mode-indent-defun
+ "C-c ." #'c-ts-mode-set-style)
;;;###autoload
(define-derived-mode c-ts-base-mode prog-mode "C"