From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "William Payne" Newsgroups: gmane.emacs.help Subject: How files should be saved, concerning type of line breaks Date: Fri, 24 Sep 2004 23:15:55 +0200 Organization: Island, Linkoping University, Sweden Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1096060748 1163 80.91.229.6 (24 Sep 2004 21:19:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2004 21:19:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 24 23:19:02 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAxT3-0001d7-00 for ; Fri, 24 Sep 2004 23:19:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAxZ8-000670-Po for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Sep 2004 17:25:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-stoc.telia.net!217.209.241.210.MISMATCH!news-stod.telia.net!telia.net!newsfeed.sunet.se!news01.sunet.se!news.island.liu.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: astmatix.ida.liu.se Original-X-Trace: news.island.liu.se 1096060537 12954 130.236.186.15 (24 Sep 2004 21:15:37 GMT) Original-X-Complaints-To: abuse@island.liu.se Original-NNTP-Posting-Date: Fri, 24 Sep 2004 21:15:37 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Original-Xref: shelby.stanford.edu gnu.emacs.help:125521 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20875 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20875 Say, I open an existing text file in emacs. I make some changes and when I save it, Emacs should not change the type of line breaks (windows-style or *nix-style). This is how it works now and that's good and I don't want to change it. What I do need to change is the type of line breaks emacs uses when I save a new file. Is there something I can put in my .emacs-file that says something "always save new text files using linux style line breaks" (or windows style, regardless of what platform I am on). I seem to remember that there is a command I could issue from within emacs to accomplish this, but I would like something automatic so to speak so I can save my files using C-x C-s as normal, knowing what the type of line breaks will be used regardless of platform. Why do I want this? Well, when on Windows, I use a CVS version of Emacs that I compiled myself. Thus, being made for Windows, Emacs saves new files (or should I say buffers being written to disk) using windows style line breaks. However, I also use Cygwin which is set to work with *nix-style line breaks, that's why I want to change the default behaviour of Emacs. How do I solve this? / WP