message instead of error when treesit parser not available

master
John Turner 1 year ago
parent 72c0d999b6
commit 0f331b9321
No known key found for this signature in database

@ -3,7 +3,8 @@
:config
(let ((setup-treesit-mode (lambda (parser treesit-mode modes &optional interpreters)
(if (not (treesit-language-available-p parser))
(error "treesit language parser not available for %s" (symbol-name language))
(message "treesit language parser not available for %s"
(symbol-name language))
(seq-each (lambda (mode)
(add-to-list 'auto-mode-alist
(cons (rx (literal ".")

Loading…
Cancel
Save