Dos2unix using Emacs

To convert a buffer(file) from dos file encoding to unix in Emacs use

M-x set-buffer-file-coding-system RET undecided-unix

If you do a TAB after RET, you will see the gazillion other encoding schemes supported by Emacs.

No comments: