summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2023-09-27 00:21:40 -0700
committerYuan Fu <casouri@gmail.com>2023-10-08 22:00:36 -0700
commit73ccd9d2959aba36b2433c5c6d0a3bc81114e76d (patch)
tree9a8ccd9b30aa99d198d8f680f0c8a5509e7cf40e
parent53292c5d8186dfac5c82b0d16a10d91c691ae75f (diff)
downloademacs-73ccd9d2959aba36b2433c5c6d0a3bc81114e76d.tar.gz
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 a3a840c80a217db7d4d125c667ff7d4946507fbb)
-rw-r--r--lisp/treesit.el1
1 files changed, 0 insertions, 1 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el
index e8d57dfcd06..c4aba4c3e8d 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -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