diff --git a/oni-docker.el b/oni-docker.el new file mode 100644 index 0000000..9909a48 --- /dev/null +++ b/oni-docker.el @@ -0,0 +1,32 @@ +;;; oni-docker.el --- Configuration for working with Docker -*- lexical-binding: t; -*- + +;; Copyright (C) 2020 Tom Willemse + +;; Author: Tom Willemse +;; Keywords: local +;; Version: 2020.0107.223729 +;; Package-Requires: (dockerfile-mode) + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; Configuration for working with Dockers. + +;;; Code: + +;;;###autoload(with-eval-after-load 'dockerfile-mode (require 'oni-docker)) + +(provide 'oni-docker) +;;; oni-docker.el ends here diff --git a/test/integration/oni-docker.bats b/test/integration/oni-docker.bats new file mode 100644 index 0000000..b0712f4 --- /dev/null +++ b/test/integration/oni-docker.bats @@ -0,0 +1,9 @@ +#!/usr/bin/env bats + +@test "Loading a Dockerfile loads oni-docker" { + run emacs -batch -l package -f package-initialize \ + -visit Dockerfile \ + -eval "(prin1 (featurep 'oni-docker))" + + [ "$output" = "t" ] +}