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
Ag Ibragimov 956ef78ab2 Moves Docker keybingings onto SPC a D
For consistency with other tools
2018-01-09 01:29:34 -05:00

54 lines
1.4 KiB
EmacsLisp

;;; packages.el --- docker Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2018 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
(defconst docker-packages
'(
docker
docker-tramp
dockerfile-mode
))
(defun docker/init-docker ()
(use-package docker
:defer t
:init
(progn
(spacemacs/declare-prefix "aD" "Docker")
(evil-leader/set-key
"aDc" 'docker-containers
"aDd" 'docker-rmi
"aDe" 'docker-unpause
"aDF" 'docker-pull
"aDk" 'docker-rm
"aDi" 'docker-images
"aDo" 'docker-stop
"aDP" 'docker-push
"aDp" 'docker-pause
"aDr" 'docker-restart
"aDs" 'docker-start)
(push "\\*docker.+\\*" spacemacs-useful-buffers-regexp)))
(with-eval-after-load 'docker-containers
(evilified-state-evilify-map docker-containers-mode-map
:mode docker-containers-mode))
(with-eval-after-load 'docker-images
(evilified-state-evilify-map docker-images-mode-map
:mode docker-images-mode)))
(defun docker/init-docker-tramp ()
(use-package docker-tramp
:defer t))
(defun docker/init-dockerfile-mode ()
(use-package docker-mode
:defer t
:config (evil-leader/set-key-for-mode 'dockerfile-mode
"mcb" 'dockerfile-build-buffer)))