Tuesday, January 4, 2011

set-buffer-file-coding-system

Thanks very much to this guy: http://mike.kruckenberg.com/archives/2004/08/replace_m_in_em.html for how to get rid of the pesky ^M and put unix newlines at the end of MS-DOS and MAC encoded files, while in emacs.

ESC-X set-buffer-file-coding-system RET unix

Works like a charm. Thanks very much indeed.

No comments: