* Emacs on Windows: How to save line breaks in Unix style in undecided buffers by default.
@ 2009-01-25 12:59 hans bennekop
2009-01-25 18:43 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: hans bennekop @ 2009-01-25 12:59 UTC (permalink / raw)
To: help-gnu-emacs
In unsaved buffers that are not linked to a file the end-of-line style
is 'undecided'.
In this case Emacs saves line breaks in DOS style (crlf) on Windows.
How can I set it up to use Unix line breaks (lf) by default?
Calling (prefer-coding-system 'utf-8-unix) or setting "" in
file-coding-system-alist to 'undecided-unix works as a quick fix, but
also causes DOS style files to be opened as Unix style files, which is
rather annoying.
Thank you!
Hans
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-25 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-25 12:59 Emacs on Windows: How to save line breaks in Unix style in undecided buffers by default hans bennekop
2009-01-25 18:43 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.