Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interesting to see emacs on its lonesome in one of those boxes. How does that work? Emacs client into an exposed port or something else?


In your .emacs

(defun create-docker-terminal (buffer-name) (interactive "sshell name: ") (ansi-term "~/docker/launch.sh") (rename-buffer buffer-name t)) (global-set-key (kbd "C-c d") 'create-docker-terminal)

In your launch.sh

docker run -u user -i -t -v local-dir:dir-inside-container /bin/bash --rcfile your-rc-file


So you are just running docker from within emacs rather than the other way round?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: