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/README.org

54 lines
2.7 KiB
Org Mode
Raw Normal View History

#+TITLE: Vagrant layer
2015-06-10 16:44:30 +00:00
[[file:img/vagrant.png]]
2018-09-19 03:54:47 +00:00
* Table of Contents :TOC_4_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description][Description]]
- [[#features][Features:]]
- [[#install][Install]]
- [[#layer][Layer]]
- [[#vagrant][Vagrant]]
- [[#testing][Testing]]
- [[#key-bindings][Key bindings]]
2015-06-10 16:44:30 +00:00
* Description
This layer adds support for working with Vagrant using [[https://github.com/ottbot/vagrant.el][vagrant.el]] and
[[https://github.com/dougm/vagrant-tramp][vagrant-tramp]].
** Features:
2018-09-19 03:54:47 +00:00
- Manage boxes (under the ~SPC a V~ prefix)
- Remote editing on Vagrant boxes via Tramp
2015-06-10 16:44:30 +00:00
* Install
** 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.
2015-06-10 16:44:30 +00:00
*Note:* Since vagrant files are written in =ruby= it is recommended
to install the =ruby= layer as well.
** Vagrant
2017-04-25 15:42:58 +00:00
Follow the [[https://www.vagrantup.com/docs/installation/index.html][Installing Vagrant]] and [[https://www.vagrantup.com/intro/getting-started/index.html][Getting Started]] guides in
2018-09-19 03:54:47 +00:00
Vagrants documentation.
2015-06-10 16:44:30 +00:00
** Testing
2018-09-19 03:54:47 +00:00
If youd like to test this layer out in a simple way (for example to
2017-04-25 15:42:58 +00:00
make sure you have Vagrant configured correctly) there is a [[https://gist.github.com/anonymous/578279337caf180298cd91c61be995bc][Vagrantfile]]
2015-06-10 16:44:30 +00:00
in this directory.
* Key bindings
2015-06-10 16:44:30 +00:00
| Key binding | Description |
2015-06-10 16:44:30 +00:00
|-------------+------------------------------------------------------------------------------------------------|
2017-04-25 15:42:58 +00:00
| ~SPC a V D~ | destroy a box |
| ~SPC a V e~ | edit the =Vagrantfile= |
| ~SPC a V H~ | halt (shut down) a box |
| ~SPC a V p~ | (re)provision a box that is already up |
| ~SPC a V r~ | resume a suspended box (you can also use =SPC V V= for this) |
| ~SPC a V R~ | reload a box |
| ~SPC a V s~ | view the status of running boxes in the current project |
| ~SPC a V S~ | suspend a box |
| ~SPC a V t~ | start a =vagrant-tramp-term= session - after start, edit files at =/vagrant:box_name:filename= |
| ~SPC a V V~ | bring up a Vagrant box |