]> 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 07:06:43 +0000 (23:06 -0800)
commit80839498614a3d898daabc2725fb814ce1e3ace0
tree7f3a36de4bd2228c14c72d8f7fdb85ab671f00ea
parentae91d5cd53111216788473e81b378c556ba496a2
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