emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/treesit-fold b493772d32 080/417: Fix autoload


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold b493772d32 080/417: Fix autoload
Date: Mon, 1 Jul 2024 10:02:13 -0400 (EDT)

branch: elpa/treesit-fold
commit b493772d32ffd15553b95a965bc4f32b0d8fdc3c
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: Jen-Chieh Shen <jcs090218@gmail.com>

    Fix autoload
---
 tree-sitter-fold.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tree-sitter-fold.el b/tree-sitter-fold.el
index 3faebce01b..99a2529b3b 100644
--- a/tree-sitter-fold.el
+++ b/tree-sitter-fold.el
@@ -149,12 +149,17 @@ the fold in a cons cell.  See 
`tree-sitter-fold-range-python' for an example."
   (let ((tree-sitter-mode t))
     (tree-sitter-fold-open-all)))
 
+;;;###autoload
 (define-minor-mode tree-sitter-fold-mode
   "Folding code using tree sitter."
   :init-value nil
   :lighter "TS-Fold"
   (if tree-sitter-fold-mode (tree-sitter-fold--enable) 
(tree-sitter-fold--disable)))
 
+;;;###autoload
+(define-global-minor-mode global-tree-sitter-fold-mode tree-sitter-fold-mode
+  (lambda () (tree-sitter-fold-mode 1)))
+
 ;;
 ;; (@* "Core" )
 ;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]