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

56 lines
1.7 KiB
EmacsLisp
Raw Normal View History

2016-06-10 03:53:33 +00:00
;;; packages.el --- docker Layer packages File for Spacemacs
;;
2021-03-22 20:11:29 +00:00
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
;; 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.
;;
;; 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 <http://www.gnu.org/licenses/>.
2016-06-10 03:53:33 +00:00
(defconst docker-packages
'(
docker
docker-tramp
dockerfile-mode
2019-11-10 05:53:44 +00:00
flycheck
))
2016-06-10 03:53:33 +00:00
(defun docker/init-docker ()
(use-package docker
:defer t
:init
(progn
(spacemacs/set-leader-keys "atd" #'docker))))
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 dockerfile-mode
:defer t
:init (add-hook 'dockerfile-mode-local-vars-hook #'spacemacs//docker-dockerfile-setup-backend)
:config
(spacemacs/declare-prefix-for-mode 'dockerfile-mode "mc" "compile")
(spacemacs/set-leader-keys-for-major-mode 'dockerfile-mode
"cb" 'dockerfile-build-buffer
"cB" 'dockerfile-build-no-cache-buffer)))
2019-11-10 05:53:44 +00:00
(defun docker/post-init-flycheck ()
(spacemacs/enable-flycheck 'dockerfile-mode))