help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save without carriage returns


From: Pascal Bourguignon
Subject: Re: Save without carriage returns
Date: Thu, 19 Jan 2006 04:39:51 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

iamnoah@gmail.com writes:

> How can I make emacs save files with just \n instead of \r\n?

Once: C-x RET c iso-8859-1-unix RET C-x C-s
                (or any other -unix encoding)


For new buffer, I'd use set-default-coding-systems.

   (set-default-coding-systems 'iso-8859-1-unix)

Otherwise, emacs keep the encoding including the newlines it found in
an old file.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d? s++:++ a+ C+++ UL++++ P--- L+++ E+++ W++ N+++ o-- K- w--- 
O- M++ V PS PE++ Y++ PGP t+ 5+ X++ R !tv b+++ DI++++ D++ 
G e+++ h+ r-- z? 
------END GEEK CODE BLOCK------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]