> Date: Fri, 17 Feb 2006 17:16:37 -0700 > From: "Ryan Bowman" <[EMAIL PROTECTED]> > > I run Emacs (21.3.50.1) on Windows XP. When I open a file emacs > detects if the file contains unix or windows line endings and uses the > appropriate.
This is the default behavior... > When I create a new file it uses Unix line endings. ...but this is not! By default, Emacs on Windows should use DOS line endings when it creates new files. Does this change in any way if you invoke Emacs as "emacs -Q"? If so, perhaps some of your customizations in .emacs cause this effect. Btw, what build of Emacs do you use (what does "M-x emacs-version RET" print)? > I would like emacs to always use dos line endings Even if the original file had Unix line endings? If so (I don't recommend it), you could set the value of save-buffer-coding-system to dos. > (because everyone else I work with uses Eclipse on Windows). You mean, Eclipse on Windows doesn't support Unix line endings? That would be a bug in Eclipse, I think.
