Emacs (line break/buffer coding system) Conversion From DOS to UNIX and Vice Versa

Adam posted @ Sun, 02 Mar 2014 17:12:27 +0800 in emacs with tags emacs , 1849 readers

If in emacs you need a different file coding system (line terminator/line break), for example you are on a windows system and need to type a unix like text file (or vice versa), you can easily convert the buffer coding system.

DOS/Windows to UNIX


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

or


C-x RET f undecided-unix
C-x C-f

UNIX to DOS/Windows


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

or


C-x RET f undecided-dos
C-x C-f

Ref: http://edivad.wordpress.com/2007/04/03/emacs-convert-dos-to-unix-and-vice-versa/

  • No match
Sabrina said:
Tue, 26 Feb 2019 18:09:52 +0800

This has been very helpful. I have tried this conversion by myself but didn’t work out as washington dc private tours expected. There were errors that I couldn’t recognize and I found it really tough to make this conversion run myself.

Sophia Wilkin said:
Mon, 27 May 2019 08:28:36 +0800

Friends are important part of everyone's life but only the HTML coding with the mixture of <a href="https://www.topaperwritingservices.com/review-college-paper-org/">college-paper.org</a> services for that you want friends is shown on your blog. Please check your setting and do a proper correction in your website.

Sophia Wilkin said:
Mon, 27 May 2019 08:28:50 +0800

<a href="https://www.topaperwritingservices.com/review-college-paper-org/">college-paper.org</a>

<a rel="dofollow" href="https://casinosapproved.info/g2a-pay-casino/">see review here</a>

[URL=https://www.essayontime.co.uk/]academic writing services uk[/URL]

[best essay writing help](https://www.essayontime.co.uk/)

[url=https://www.bestessays-writer.com/]the best essay writer[/url]


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter