Emacs: add hooks for edit-server and frame creation

Signed-off-by: Andrew McDermott <andrew.iain.mcdermott@gmail.com>