]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix setting custom 'c++-ts-mode' indent style
authorEli Zaretskii <eliz@gnu.org>
Sat, 21 Jun 2025 09:10:54 +0000 (12:10 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 22 Jun 2025 08:09:44 +0000 (10:09 +0200)
* lisp/progmodes/c-ts-mode.el (c-ts-mode-set-style): Fix a typo.
(Bug#78814)

(cherry picked from commit e379f14193982ef500d8806386e26155ff780290)

lisp/progmodes/c-ts-mode.el

index 7b40b4c73d3d67784088088c51d4a900de85a1d4..0df9fe39e3669b4be216e0a63ef853e8423e21ac 100644 (file)
@@ -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