aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-07-08 14:53:20 -0700
committerGravatar Tom Willemse2024-07-08 14:53:20 -0700
commiteeca5767e94fa1033cd8dad4c273408246d8ec9f (patch)
treef9983bd9c86cc919f33034c2c20c602da5343d16
parent89f4dc62348a347ca6d8e0391d33639aef87d965 (diff)
downloademacs-config-eeca5767e94fa1033cd8dad4c273408246d8ec9f.tar.gz
emacs-config-eeca5767e94fa1033cd8dad4c273408246d8ec9f.zip
Require treesit
`treesit-available-p' is defined in the C source code, but `treesit-ready-p' is defined in `treesit.el'.
-rw-r--r--oni-python/oni-python.el1
-rw-r--r--oni-yaml.el1
2 files changed, 2 insertions, 0 deletions
diff --git a/oni-python/oni-python.el b/oni-python/oni-python.el
index 73bf001..c88e7b4 100644
--- a/oni-python/oni-python.el
+++ b/oni-python/oni-python.el
@@ -101,6 +101,7 @@ for indentation."
;;;###autoload
(when (and (functionp 'treesit-available-p)
(treesit-available-p)
+ (require 'treesit)
(treesit-ready-p 'python))
(add-to-list 'major-mode-remap-alist '(python-mode . python-ts-mode))
(oni-python--enable-hooks 'python-ts-mode-hook))
diff --git a/oni-yaml.el b/oni-yaml.el
index 27a4cf6..6019257 100644
--- a/oni-yaml.el
+++ b/oni-yaml.el
@@ -54,6 +54,7 @@
;;;###autoload
(when (and (functionp 'treesit-available-p)
(treesit-available-p)
+ (require 'treesit)
(treesit-ready-p 'yaml))
(add-to-list 'major-mode-remap-alist '(yaml-mode . yaml-ts-mode))
(oni-yaml--enable-hooks 'yaml-ts-mode-hook))