Don't call font-lock-mode in treesit-major-mode-setup (bug#66223)

* lisp/treesit.el (treesit-major-mode-setup): Remove.

(cherry picked from commit a3a840c80a)
This commit is contained in:
Yuan Fu 2023-09-27 00:21:40 -07:00
parent 53292c5d81
commit 73ccd9d295
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -2386,7 +2386,6 @@ before calling this function."
'( nil nil nil nil
(font-lock-fontify-syntactically-function
. treesit-font-lock-fontify-region)))
(font-lock-mode 1)
(treesit-font-lock-recompute-features)
(dolist (parser (treesit-parser-list))
(treesit-parser-add-notifier