diff options
author | 2020-01-07 22:43:59 -0800 | |
---|---|---|
committer | 2020-01-07 22:43:59 -0800 | |
commit | a1e3fb87dc67bc48889506e6d17b1610f08c9a8b (patch) | |
tree | a92b5dcf6ea1b9d51918e6d7c1128aea3bdc62f1 | |
parent | e5127ad0d27c1bb0ad5af05f48835eae565ff120 (diff) | |
download | emacs-config-a1e3fb87dc67bc48889506e6d17b1610f08c9a8b.tar.gz emacs-config-a1e3fb87dc67bc48889506e6d17b1610f08c9a8b.zip |
Add docker configuration
-rw-r--r-- | oni-docker.el | 32 | ||||
-rw-r--r-- | test/integration/oni-docker.bats | 9 |
2 files changed, 41 insertions, 0 deletions
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 <tom@ryuslash.org> +;; 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 <https://www.gnu.org/licenses/>. + +;;; 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" ] +} |