Add support for emacs in x11.