]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't call font-lock-mode in treesit-major-mode-setup (bug#66223)
authorYuan Fu <casouri@gmail.com>
Wed, 27 Sep 2023 07:21:40 +0000 (00:21 -0700)
committerYuan Fu <casouri@gmail.com>
Wed, 27 Sep 2023 07:21:40 +0000 (00:21 -0700)
* lisp/treesit.el (treesit-major-mode-setup): Remove.

lisp/treesit.el

index 64d6841a101e9d95c2ea4f8d79d6b5217dfcaf88..0790ad7e011b9e251fbfeba9b3930c3eb47aa6cc 100644 (file)
@@ -2733,7 +2733,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