From 59365f928565f1be551b1697b9246b00cb87a9b7 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Wed, 1 Mar 2023 14:38:22 -0800 Subject: [PATCH] * lisp/progmodes/go-ts-mode.el: Use treesit-language-available-p. treesit-ready-p does more checks than language grammar availability. --- lisp/progmodes/go-ts-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index 6043c86ac93..fbe085a2c6c 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -393,7 +393,7 @@ what the parent of the node would be if it were a node." (treesit-major-mode-setup))) -(if (treesit-ready-p 'gomod t) +(if (treesit-language-available-p 'gomod) (add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode))) (provide 'go-ts-mode) -- 2.39.5