added check for window-system in .emacs