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).

Similar Posts

Leave a Reply

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