Optimize emacs config for shell use