1
0
Fork 0

Add docker configuration

This commit is contained in:
Tom Willemse 2020-01-07 22:43:59 -08:00
parent e5127ad0d2
commit a1e3fb87dc
2 changed files with 41 additions and 0 deletions

32
oni-docker.el Normal file
View File

@ -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

View File

@ -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" ]
}