]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/progmodes/c-ts-mode.el: Demote loading c-ts-mode as a configuration
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 18 Nov 2024 15:10:00 +0000 (10:10 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 27 Nov 2024 19:49:41 +0000 (20:49 +0100)
See bug#74367.

(cherry picked from commit 8dc9dfdc381f5b75594572bfb3bbfb5126bc4a88)

lisp/progmodes/c-ts-mode.el

index f4b1eea16b499922e8f38f8e31927f73da5a74cb..256d18e3a55245a379e48ac6e38dacaa3f2d819a 100644 (file)
 ;; To use these modes by default, assuming you have the respective
 ;; tree-sitter grammars available, do one of the following:
 ;;
-;; - If you have both C and C++ grammars installed, add
-;;
-;;    (require 'c-ts-mode)
-;;
-;;   to your init file.
-;;
 ;; - Add one or mode of the following to your init file:
 ;;
 ;;    (add-to-list 'major-mode-remap-alist '(c-mode . c-ts-mode))
 ;;
 ;;   will turn on the c++-ts-mode for C++ source files.
 ;;
+;; - If you have both C and C++ grammars installed, add
+;;
+;;     (load "c-ts-mode")
+;;
+;;   to your init file.
+;;
 ;; You can also turn on these modes manually in a buffer.  Doing so
 ;; will set up Emacs to use the C/C++ modes defined here for other
 ;; files, provided that you have the corresponding parser grammar