Skip to content

Commit

Permalink
Fix fontification refresh needed starting Emacs 29.2 after enabling c…
Browse files Browse the repository at this point in the history
…ss-in-js-mode.
  • Loading branch information
llemaitre19 committed Feb 20, 2024
1 parent 7f912f5 commit df36c30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions css-in-js-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df36c30

Please sign in to comment.