emacs change default line ending

我的未来我决定 提交于 2019-12-12 08:31:20

问题


In Windows, Emacs is using cr-lf for a linebreak, but I like all my files to use Unix line endings (lf). I found a way to change it during my session, but I am not such an Emacs guru to translate the solution into an elisp command in my .emacs file.

Can anybody help me, so Emacs in Windows will use lf permanently?


回答1:


See also How to configure GNU Emacs to write UNIX or DOS formatted files by default?

(setq default-buffer-file-coding-system 'utf-8-unix)


来源:https://stackoverflow.com/questions/9760290/emacs-change-default-line-ending

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!