# Emacs

## Emacs strip CR(^M)

Time to time I use the great old text editor Emacs. In spite of advanced age this reliable text editor competes with modern text editors and even some IDEs. If you work with text files on different platforms you may encounter with CR(^M) symbols on every line. This happen If you have a mix of lines that ends with ^M and lines that don’t.

Also if you see ^M in your file, you may have opened a file with DOS-style line endings (carriage return + line feed) while Emacs assumes it has Unix-style line endings (line feed only). (The carriage-return character, sometimes abbreviated as CR, is ^M. The line-feed character, sometimes abbreviated as LF, is ^J)