From 5ea266270db1c69b847d7d6b115b2817e5ad235b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 7 Jan 2020 17:17:35 -0800 Subject: Add auto-insert template for bats-mode --- oni-bats.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'oni-bats.el') diff --git a/oni-bats.el b/oni-bats.el index ea05539..d969f28 100644 --- a/oni-bats.el +++ b/oni-bats.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2019.1117.104022 +;; Version: 2020.0107.171424 ;; Package-Requires: (bats-mode oni-sh) ;; This program is free software; you can redistribute it and/or modify @@ -29,6 +29,11 @@ ;;; Code: +(require 'autoinsert) + +;;;###autoload +(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)) (provide 'oni-bats) -- cgit v1.2.3-54-g00ecf