In emacs, how to strip CR (^M) and leave LF (^J) characters?

前端 未结 10 672
感动是毒
感动是毒 2021-01-31 03:01

I am trying to use hexl mode to manually remove some special chars from a text file and don\'t see how to delete anything in hexl mode.

What I really want is to remove c

10条回答
  •  萌比男神i
    2021-01-31 03:24

    Assuming you want a DOS encoded file to be changed into UNIX encoding, use M-x set-buffer-file-coding-system (C-x RET f) to set the coding-system to "unix" and save the file.

提交回复
热议问题