If in emacs you need a different file coding system (line terminator), 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 to unix
M-x set-buffer-file-coding-system RET undecided-unix
save the file (C-x C-s)
or
C-x RET f undecided-unix
C-x C-f
Unix to dos
M-x set-buffer-file-coding-system RET undecided-dos
save the file (C-x C-s)
or
C-x RET f undecided-dos
C-x C-f
Worked here on an already saved file in Windows.
Thanks – handy-dandy, came right up on google, – fixed my (DOS) in gnu emacs !!
Reblogged this on Peter Mount's Blog.
very good. You help me solve a big problem
Thanks for sharing such a nice opinion, post is nice, thats why i have read it completely
Everything is very open with a precise description of the challenges.
It was definitely informative. Your website is very useful.
Thanks for sharing!
Thanks, this was something I was looking for after making a python code in windows and moving it to linux. After hours of frustration I realised it was all due to line endings. 🙂
Dupa ce am citit despre emacs, convert dos to unix and vice versa ,
nu am putut sa nu le recomand si prietenilor mei.
Thanks
👍🏻
if i want use this commands of this article https://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/ your post can help me?
Nice weblog here! Also your website a lot up very
fast! What web host are you the use of? Can I get your affiliate
hyperlink to your host? I want my site loaded up as quickly as yours lol