;; stop ^M from appearing in shell window (add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m nil t)