make config work in shell or gui
enable single emacs to work from command line