Emacs File Code

Change Saved File Code

Sometimes you import a DOS file into Linux. To change the file coding in Emacs, do:

M-x set-buffer-file-coding-system [Return] unix

Its that simple.

You can also save Unix files in a DOS/Windows format:

M-x set-buffer-file-coding-system [Return] dos