Adds support for emacs

This adds support to use emacs protocol handler