optimize for emacs gui