Emacs: removing unnecessary spaces from a buffer