some tweaks for using emacs in gui mode.