This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/docker/packages.el

54 lines
1.3 KiB
EmacsLisp
Raw Normal View History

2016-06-10 03:53:33 +00:00
;;; packages.el --- docker 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
2016-06-10 03:53:33 +00:00
(defconst docker-packages
'(
docker
docker-tramp
dockerfile-mode
))
2016-06-10 03:53:33 +00:00
(defun docker/init-docker ()
(use-package docker
:defer t
:init
(progn
(spacemacs/declare-prefix "D" "Docker")
(evil-leader/set-key
"Dc" 'docker-containers
"Dd" 'docker-rmi
"De" 'docker-unpause
"DF" 'docker-pull
"Dk" 'docker-rm
"Di" 'docker-images
"Do" 'docker-stop
"DP" 'docker-push
"Dp" 'docker-pause
"Dr" 'docker-restart
"Ds" 'docker-start))
:config
(progn
(evilified-state-evilify-map docker-container-mode-map
:mode docker-containers-mode)
(evilified-state-evilify-map docker-images-mode-map
:mode docker-images-mode))))
2016-06-10 03:53:33 +00:00
(defun docker/init-docker-tramp ()
(use-package docker-tramp
:defer t))
2016-06-10 03:53:33 +00:00
(defun docker/init-dockerfile-mode ()
(use-package docker-mode
:defer t
:config (evil-leader/set-key-for-mode 'dockerfile-mode
"mcb" 'dockerfile-build-buffer)))