Add docker configuration
This commit is contained in:
parent
e5127ad0d2
commit
a1e3fb87dc
2 changed files with 41 additions and 0 deletions
32
oni-docker.el
Normal file
32
oni-docker.el
Normal 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
|
9
test/integration/oni-docker.bats
Normal file
9
test/integration/oni-docker.bats
Normal 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" ]
|
||||||
|
}
|
Loading…
Reference in a new issue