Improve the treesit check around expreg

Part of testing with Emacs 28
This commit is contained in:
Vedang Manerikar 2024-12-02 07:50:57 +05:30
parent 6af70b326c
commit 5d86e2fd74
3 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View file

@ -12,3 +12,4 @@ ielm-history.eld
multisession/
.cask/
org-clock-save.el
tramp

View file

@ -1216,7 +1216,8 @@ I expect ~expreg~ to eventually completely replace ~easy-kill~ ()
#+begin_src emacs-lisp :tangle "unravel-modules/unravel-essentials.el"
;;; Mark syntactic constructs efficiently if tree-sitter is available (expreg)
(when (treesit-available-p)
(when (and (fboundp 'treesit-available-p)
(treesit-available-p))
(use-package expreg
:ensure t
:functions (prot/expreg-expand prot/expreg-expand-dwim)

View file

@ -103,7 +103,8 @@
("M-w" . easy-kill)) ; re-map kill-ring-save
;;; Mark syntactic constructs efficiently if tree-sitter is available (expreg)
(when (treesit-available-p)
(when (and (fboundp 'treesit-available-p)
(treesit-available-p))
(use-package expreg
:ensure t
:functions (prot/expreg-expand prot/expreg-expand-dwim)