Hiding ^M in Emacs
(defun remove-dos-eol () “Do not show ^M in files containing mixed UNIX and DOS line endings.” (interactive) (setq buffer-display-table (make-display-table)) (aset buffer-display-table ?\^M [])) Solution by Johan Bockgård. I found it here.