emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter

Home Page:https://emacs-tree-sitter.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have tree-sitter-hl-mode set `font-lock-defaults` to dummy value

lambdadog opened this issue · comments

This isn't an issue with existing modes, since they typically already include font-lock highlighting, but while writing my own mode backed by tree-sitter, I found that it was necessary to set font-lock-defaults to a dummy value (I eventually landed on '(('t))) for tree-sitter-hl-mode to perform highlighting.

Ideally, if font-lock-defaults was unset, tree-sitter-hl-mode could just set this value when enabled.