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/vagrant/packages.el

43 lines
1.2 KiB
EmacsLisp
Raw Normal View History

;;; packages.el --- Vagrant Layer packages File for Spacemacs
2015-03-06 17:38:01 +00:00
;;
2018-01-04 07:00:25 +00:00
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
2015-03-06 17:38:01 +00:00
;;
;; Author: Brian Hicks <brian@brianthicks.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(setq vagrant-packages '(vagrant
2015-03-06 17:38:01 +00:00
vagrant-tramp))
(defun vagrant/init-vagrant ()
(use-package vagrant
:defer t
:init
(progn
2017-04-28 14:21:43 +00:00
(spacemacs/declare-prefix "aV" "vagrant")
(spacemacs/set-leader-keys
2017-03-15 18:22:50 +00:00
"aVD" 'vagrant-destroy
"aVe" 'vagrant-edit
"aVH" 'vagrant-halt
"aVp" 'vagrant-provision
"aVr" 'vagrant-resume
"aVR" 'vagrant-reload
"aVs" 'vagrant-status
"aVS" 'vagrant-suspend
"aVV" 'vagrant-up))))
2015-03-06 17:38:01 +00:00
(defun vagrant/init-vagrant-tramp ()
(use-package vagrant-tramp
2015-03-09 03:37:31 +00:00
:defer t
:init
(progn
2015-03-09 03:37:31 +00:00
(defvar spacemacs--vagrant-tramp-loaded nil)
(defadvice vagrant-tramp-term (before spacemacs//load-vagrant activate)
"Lazy load vagrant-tramp."
(unless spacemacs--vagrant-tramp-loaded
(vagrant-tramp-add-method)
2015-03-09 03:37:31 +00:00
(setq spacemacs--vagrant-tramp-loaded t)))
(spacemacs/set-leader-keys "Vt" 'vagrant-tramp-term))))