1
0
Fork 0

Fix the bats auto-insert template

Don’t try to add it if it hasn’t been loaded.
This commit is contained in:
Tom Willemse 2020-01-08 15:46:53 -08:00
parent b4dc4d0f9f
commit 9a78612a43

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0107.171424 ;; Version: 2020.0108.154614
;; Package-Requires: (bats-mode oni-sh) ;; Package-Requires: (bats-mode oni-sh)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -32,7 +32,8 @@
(require 'autoinsert) (require 'autoinsert)
;;;###autoload ;;;###autoload
(add-to-list 'auto-insert-alist '(bats-mode nil "#!/usr/bin/env bats\n\n")) (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 (require 'oni-bats)) ;;;###autoload(with-eval-after-load 'bats-mode (require 'oni-bats))