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 , 1657 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


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

UNIX to DOS/Windows

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


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
bourn said:
Mon, 03 Sep 2018 07:31:48 +0800

Art and literature can be so liberating but there are people who struggle with it no matter how hard they try. Writing can be hard and people use britishessaywriter.co.uk review to help, I really don’t see the harm in doing so.

fahad said:
Fri, 12 Oct 2018 23:05:50 +0800

hmmmmm <a href="https://youtube.com">good post</a>

academized said:
Fri, 12 Oct 2018 23:07:27 +0800

these Sweeteners are making me finger licking and mouth watering.I'm so grateful to you for sharing the recipe.Keep posting such delicious posts.

academized.com said:
Fri, 12 Oct 2018 23:07:33 +0800

Good article, I had iphone and had faced these problems. I wish I had read this article by then. Going to share it with my circle of friends so that they can get benefit from it

Login *

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