How to convert between dos and unix file coding in Emacs?

How to convert between dos and unix file coding for files in Emacs?

From Dos to Unix coding:

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

or

C-x RET f undecided-unix

Then save the file (C-x C-s).

From Unix to Dos

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

or

C-x RET f undecided-dos

Then save the file (C-x C-s).

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *