Table of Contents

Vagrant layer

Table of ContentsClose


1 Description

This layer adds support for working with Vagrant using vagrant.el and vagrant-tramp.

1.1 Features:

  • Manage boxes (under the SPC V prefix)
  • Remote editing on Vagrant boxes via Tramp

2 Install

2.1 Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add vagrant to the existing dotspacemacs-configuration-layers list in this file.

Note: Since vagrant files are written in ruby it is recommended to install the ruby layer as well.

2.2 Vagrant

Follow the Installing Vagrant and Getting Started guides in Vagrant's documentation.

2.3 Testing

If you'd like to test this layer out in a simple way (for example to make sure you have Vagrant configured correctly) there is a Vagrantfile in this directory.

3 Keybindings

Key Binding Description
SPC V D destroy a box
SPC V e edit the Vagrantfile
SPC V H halt (shut down) a box
SPC V p (re)provision a box that is already up
SPC V r resume a suspended box (you can also use SPC V V for this)
SPC V R reload a box
SPC V s view the status of running boxes in the current project
SPC V S suspend a box
SPC V t start a vagrant-tramp-term session - after start, edit files at /vagrant:box_name:filename
SPC V V bring up a Vagrant box

Author: Sylvain Benner

Created: 2016-10-03 Mon 00:55