aboutsummaryrefslogtreecommitdiffstats
path: root/oni-bats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-12-01 13:43:21 -0800
committerGravatar Tom Willemse2021-12-01 13:43:21 -0800
commit8af6f8d1604272a4e2d13a2981f02b6dd6e84bd6 (patch)
treefac47da6c4145a4cddc9089ef29fae0cf168f510 /oni-bats
parente1aecd6f63bf518564cbc6ff9e365c2958dd5cbe (diff)
downloademacs-config-8af6f8d1604272a4e2d13a2981f02b6dd6e84bd6.tar.gz
emacs-config-8af6f8d1604272a4e2d13a2981f02b6dd6e84bd6.zip
Remove autoloads for snippet loading
Loading ‘yasnippet’ shouldn't automatically load my package configuration. If my package configuration hasn't been loaded it shouldn't try to include my snippets.
Diffstat (limited to 'oni-bats')
-rw-r--r--oni-bats/oni-bats.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/oni-bats/oni-bats.el b/oni-bats/oni-bats.el
index 80564d7..2c2b9f7 100644
--- a/oni-bats/oni-bats.el
+++ b/oni-bats/oni-bats.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2021.0715.223146
+;; Version: 2021.1201.134023
;; Package-Requires: (bats-mode oni-sh oni-yasnippet)
;; This program is free software; you can redistribute it and/or modify
@@ -50,7 +50,6 @@
"Disable ‘shfmt-on-save-mode’."
(shfmt-on-save-mode -1))
-;;;###autoload
(defun oni-bats-snippets-initialize ()
"Initialize the snippets for ‘oni-bats’."
(when (boundp 'yas-snippet-dirs)
@@ -63,7 +62,6 @@
(with-eval-after-load 'autoinsert
(add-to-list 'auto-insert-alist '(bats-mode nil "#!/usr/bin/env bats\n\n")))
-;;;###autoload
(with-eval-after-load 'bats-mode
(with-eval-after-load 'yasnippet
(oni-bats-snippets-initialize)))