From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Can I change the way emacs saves text files? Date: 21 Feb 2004 01:26:52 +0100 Organization: Organization?!? Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1077323561 27380 80.91.224.253 (21 Feb 2004 00:32:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Feb 2004 00:32:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 21 01:32:38 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AuL4P-0007sw-01 for ; Sat, 21 Feb 2004 01:32:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AuL2o-0007F5-3S for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2004 19:30:58 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!p3ee20cbe.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: p3ee20cbe.dip.t-dialin.net (62.226.12.190) Original-X-Trace: news.uni-berlin.de 1077323213 49214737 I 62.226.12.190 ([198409]) X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:121087 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:17037 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17037 "William Payne" writes: > "David Kastrup" wrote in message > news:x5r7wpmqhw.fsf@lola.goethe.zz... > > "William Payne" writes: > > > > > Hello, can I control the way Emacs saves text files, and by way I mean > > > windows style and *nix style line breaks? > > > > > > Preferrably, I'm looking for a setting I can put in my .emacs file. > > > > What problem are you having with it? It saves usually in the style > > in which it has read them. > > Well, if I do C-x C-f and "open" a file that doesn't exist I would like to > be able to specify how it should be saved (windows or *nix style line > breaks). I am using Emacs for Windows (I compiled Emacs from source myself) > under Cygwin, and I want to save all files I create from within Emacs as > unix files instead of Windows files as it is doing now. C-x RET f latin-1-unix RET and the file will be saved as Unix. (set-default-coding-system 'latin-1-unix) or something like that should do the trick for setting the default. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum