Adjust prompt and other stuffs

Adjust PS1 prompt, trim trailing spaces and set GIT_EDITOR to
$HOME/opt/emacs/bin/emacs.