]> git.eshelyaron.com Git - emacs.git/commit
treesit-font-lock-recompute-features now has two modes of operation
authorYuan Fu <casouri@gmail.com>
Tue, 22 Nov 2022 07:06:43 +0000 (23:06 -0800)
committerYuan Fu <casouri@gmail.com>
Tue, 22 Nov 2022 09:06:51 +0000 (01:06 -0800)
commit6e078380512675aabd45ed752f60ebe424efd89d
tree5eb5c9c3b53be0a23072d82e10d10ce6283e73b3
parentcb60342c0184fa8ef9462c9926e93dceff959f49
treesit-font-lock-recompute-features now has two modes of operation

1. Set activation of each feature (changes every feature)
2. Add/remove features (only change those explicitly configured by
ADD-LIST and REMOVE-LIST)

This is useful for enabling/disabling certain features for all
modes (without resetting others) by calling this function in
prog-mode-hook

* lisp/treesit.el (treesit-font-lock-recompute-features): See above
description.
lisp/treesit.el