Use PROMPT_COMMAND under X
Cleanup emacs configuration