diff options
Diffstat (limited to 'common/.emacs.d/init.el')
| -rw-r--r-- | common/.emacs.d/init.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/.emacs.d/init.el b/common/.emacs.d/init.el index b24b4c3..7d68ce0 100644 --- a/common/.emacs.d/init.el +++ b/common/.emacs.d/init.el @@ -323,7 +323,8 @@ (defun enable-ts-mode (lang &optional from to) (let ((from (or from (intern (format "%s-mode" lang)))) (to (or to (intern (format "%s-ts-mode" lang))))) - (when (treesit-ready-p lang 'quiet) + (when (and (functionp #'treesit-ready-p) + (treesit-ready-p lang 'quiet)) (cl-pushnew (cons from to) major-mode-remap-alist :test #'equal)))) |
