Adding layer for dockerfile-mode
This commit is contained in:
parent
0b9aee747c
commit
17c2ddf943
31
contrib/dockerfile/README.md
Normal file
31
contrib/dockerfile/README.md
Normal 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`
|
BIN
contrib/dockerfile/img/dockerfile.png
Normal file
BIN
contrib/dockerfile/img/dockerfile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
28
contrib/dockerfile/packages.el
Normal file
28
contrib/dockerfile/packages.el
Normal 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
|
||||
)))
|
||||
)
|
Loading…
Reference in a new issue