all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: Save without carriage returns
Date: Thu, 19 Jan 2006 04:39:51 +0100	[thread overview]
Message-ID: <87acdsq41k.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 1137638289.891342.108920@g44g2000cwa.googlegroups.com

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	other threads:[~2006-01-19  3:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19  2:38 Save without carriage returns iamnoah
2006-01-19  3:39 ` Pascal Bourguignon [this message]
2006-01-19 11:05   ` Rupert Swarbrick
2006-01-19 15:08     ` iamnoah
2006-01-19 19:18       ` Andreas Röhler
2006-01-20  9:13       ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87acdsq41k.fsf@thalassa.informatimago.com \
    --to=spam@mouse-potato.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.