Summary

Here is a thin-client for emacs.

Code
http://github.com/semiosis/pen.el/blob/master/src/pen-client.el

It uses the docker container as a server.

You will still need to add the scripts directory to your path and add appropriate keys to ~/.pen as shown in the readme.

https://github.com/semiosis/pen.el/tree/master/scripts

https://github.com/semiosis/pen.el/blob/master/README.org

Demo