Autoload `tree-sitter-indent-mode' #15

Merged
FelipeLema merged 1 commits from eeshugerman/tree-sitter-indent.el:main into main 6 months ago

This makes it possible to defer loading the package until the mode is enabled by a hook. For example

(use-package tree-sitter-indent
    :defer t ;; only load autoloads
    :init (add-hook 'rust-mode-hook #'tree-sitter-indent-mode))

With :defer t, unless tree-sitter-mode is autoloaded, the hook will fail because tree-sitter-mode is not defined.

This makes it possible to defer loading the package until the mode is enabled by a hook. For example ``` (use-package tree-sitter-indent :defer t ;; only load autoloads :init (add-hook 'rust-mode-hook #'tree-sitter-indent-mode)) ``` With `:defer t`, unless `tree-sitter-mode` is autoloaded, the hook will fail because `tree-sitter-mode` is not defined.
eeshugerman added 1 commit 6 months ago
FelipeLema merged commit 5f80e89b7d into main 6 months ago
Owner

looks cool, thanks

looks cool, thanks
The pull request has been merged as 5f80e89b7d.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.