emacs: only disable gui elements when using a gui
update