Convert Line Endings Between DOS and Unix in Emacs
Emacs handles line ending conversions through its buffer coding system. Whether you’re converting CRLF (DOS/Windows) to LF (Unix) or the reverse, the process is straightforward. DOS to Unix (CRLF to LF) Open the file in Emacs and run: M-x set-buffer-file-coding-system RET undecided-unix Or use the keyboard shortcut: C-x RET f undecided-unix Then save the file:…
