emacs: add hide-dos-eol function

function description:
    Do not show ^M in files containing mixed UNIX and DOS line endings.