From: Eli Zaretskii Date: Sat, 21 Jun 2025 09:10:54 +0000 (+0300) Subject: Fix setting custom 'c++-ts-mode' indent style X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=429bcdd9e28002478e81dfa257803ed432c5d360;p=emacs.git Fix setting custom 'c++-ts-mode' indent style * lisp/progmodes/c-ts-mode.el (c-ts-mode-set-style): Fix a typo. (Bug#78814) (cherry picked from commit e379f14193982ef500d8806386e26155ff780290) --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 7b40b4c73d3..0df9fe39e36 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -202,7 +202,7 @@ To set the default indent style globally, use (if (functionp style) (funcall style) (c-ts-mode--simple-indent-rules - (if (derived-mode-p 'c-ts-mode) 'c 'c++) + (if (derived-mode-p 'c-ts-mode) 'c 'cpp) style))))) (defcustom c-ts-mode-emacs-sources-support t