diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-02-02 20:21:02 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-02-02 20:21:02 +0200 |
commit | 382ab516cefc974d65622479fb7e844fd982011d (patch) | |
tree | 92941ae2ed55d0855b1523134a4c776c51cf4446 /lisp/progmodes/c-ts-mode.el | |
parent | 4d3428e95a9ea38841bc234780b8abfc6a34919e (diff) | |
download | emacs-382ab516cefc974d65622479fb7e844fd982011d.tar.gz emacs-382ab516cefc974d65622479fb7e844fd982011d.tar.bz2 emacs-382ab516cefc974d65622479fb7e844fd982011d.zip |
Change the default of 'treesit-defun-tactic' for 'c-ts-mode'
* lisp/progmodes/c-ts-mode.el (c-ts-mode): Set
'treesit-defun-tactic' as appropriate for C. (Bug#61208)
Diffstat (limited to 'lisp/progmodes/c-ts-mode.el')
-rw-r--r-- | lisp/progmodes/c-ts-mode.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 195c23d28c9..9cbba92a194 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -793,6 +793,8 @@ in your configuration." (c-ts-mode--get-indent-style 'c)) ;; Font-lock. (setq-local treesit-font-lock-settings (c-ts-mode--font-lock-settings 'c)) + ;; Navigation. + (setq-local treesit-defun-tactic 'top-level) (treesit-major-mode-setup))) ;;;###autoload |