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)
This commit is contained in:
parent
4d3428e95a
commit
382ab516ce
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue