Settings

Theme

Ask HN: How to setup an interactive dev environment with Emacs and Vagrant?

1 points by momo-reina 9 years ago · 4 comments · 1 min read


I've been trying out Vagrant as my dev environment since Arch Linux performance on Virtualbox on my brand new MacBook Pro 2016 is horrendous.

Remote editing of files with Emacs on the host machine is no problem, but how do you go about setting up a completely interactive environment, e.g. Slime, with this setup? I tried setting up an emacs server on the remote and using emacsclient on the host to connect to it, but that didn't work out.

Right now it seems that I need to keep a copy of the dev tools that I use (quicklisp, numerous Lisps, etc.) on the host and the Vagrant box is just a dumb repository of the source files, which is not really what I'm looking for.

gosuteacher 9 years ago

I didn't work with emacs.(Sorry there) For code editing, vagrant mounts volumes from the host machine, so you can edit the code from the host machine and it will update in the box too.

Suggestion: Almost the same thing you can achieve with Docker(containers). Because you have a Mac, you need to check the permissions to files that need to be written from both the host and the container.

Good luck.

P.S.: Not a DevOps, these are my 2 cents. P.P.S.: Don't kill me.

  • momo-reinaOP 9 years ago

    I understand that the box reflects the file changes, however that does not really help me.

    I need an Linux Dev environment, that includes all the tools for emacs. I used to just live in the VM, but current performance is terrible, so I'm trying to see what my options are with just connecting to the VM from the host and editing from the host. That means though that all the tools are on the VM (REPL, etc) so I need to find a way to connect running emacs instance in the VM

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection