From 9fde17e0c926e78e561664bd6e5085f97985807b Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 18 Nov 2024 10:10:00 -0500 Subject: [PATCH] lisp/progmodes/c-ts-mode.el: Demote loading c-ts-mode as a configuration See bug#74367. (cherry picked from commit 8dc9dfdc381f5b75594572bfb3bbfb5126bc4a88) --- lisp/progmodes/c-ts-mode.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index f4b1eea16b4..256d18e3a55 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -35,12 +35,6 @@ ;; 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)) @@ -59,6 +53,12 @@ ;; ;; 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 -- 2.39.5