From df36c3031f401b3786beff75a59defe5189ed37d Mon Sep 17 00:00:00 2001 From: Loic Lemaitre Date: Wed, 21 Feb 2024 00:08:36 +0100 Subject: [PATCH] Fix fontification refresh needed starting Emacs 29.2 after enabling css-in-js-mode. --- css-in-js-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/css-in-js-mode.el b/css-in-js-mode.el index c9c7402..9890e02 100644 --- a/css-in-js-mode.el +++ b/css-in-js-mode.el @@ -395,6 +395,8 @@ See `comment-dwim' documentation for ARG usage." (add-to-list 'treesit-simple-indent-rules css-in-js-mode--indent-rules t) ;; apply treesit-related changes (treesit-major-mode-setup) + ;; force refontification (needed starting 29.2, cf bug #66223) + (treesit-font-lock-fontify-region (point-min) (point-max)) ;; configure capf (add-hook 'completion-at-point-functions