From: Eli Zaretskii Date: Thu, 2 Feb 2023 18:21:02 +0000 (+0200) Subject: Change the default of 'treesit-defun-tactic' for 'c-ts-mode' X-Git-Tag: emacs-29.0.90~539 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=382ab516cefc974d65622479fb7e844fd982011d;p=emacs.git 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) --- 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