Fix the bats auto-insert template
Don’t try to add it if it hasn’t been loaded.
This commit is contained in:
parent
b4dc4d0f9f
commit
9a78612a43
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
;; Version: 2020.0107.171424
|
||||
;; Version: 2020.0108.154614
|
||||
;; Package-Requires: (bats-mode oni-sh)
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
@ -32,7 +32,8 @@
|
|||
(require 'autoinsert)
|
||||
|
||||
;;;###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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue