Adding layer for dockerfile-mode

This commit is contained in:
Alan Zimmerman 2015-03-13 15:48:57 +02:00 committed by syl20bnr
parent 0b9aee747c
commit 17c2ddf943
3 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# dockerfile contribution layer for Spacemacs
![logo](img/dockerfile.png)
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [dockerfile contribution layer for Spacemacs](#dockerfile-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
- [Key bindings](#key-bindings)
<!-- markdown-toc end -->
## Description
This layer provides syntax highlighting and build functionality for Docker files
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
(setq-default dotspacemacs-configuration-layers '(dockerfile))
```
## Key bindings
Key Binding | Description
--------------|------------------------------------------------------------
`<SPC> m c b` | build current buffer via `dockerfile-build-buffer`

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

@ -0,0 +1,28 @@
;;; packages.el --- dockerfile Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2015 Sylvain Benner
;; Copyright (c) 2015 Alan Zimmerman & Contributors
;;
;; Author: Alan Zimmerman <alan.zimm@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defvar dockerfile-packages
'(
dockerfile-mode
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
(defun dockerfile/init-dockerfile-mode ()
(use-package dockerfile-mode
:defer t
:config
(progn
(evil-leader/set-key-for-mode 'dockerfile-mode
"mcb" 'dockerfile-build-buffer
)))
)