unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Roodwriter@core.com" <Roodwriter@core.com>
Subject: Re: Can I change the way emacs saves text files?
Date: Fri, 20 Feb 2004 16:13:37 -0500	[thread overview]
Message-ID: <103cu1cmf3vko06@corp.supernews.com> (raw)
In-Reply-To: x5r7wpmqhw.fsf@lola.goethe.zz

David Kastrup wrote:

> "William Payne" <mikas493_no_s_p_a_m_@student.liu.se> 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.
> 

I've had the same problem with 21.1.1, though it worked fine with an earlier 
version. It always saved with Linux/unix line ends.

I just created macros using replace-regexp to change the line ends, easily 
converting from either system.

These days, though, I figure I'm on Linux for good so I no longer save with 
Windows line ends unless I'm sending the file to a Windows machine.



--Rod

__________

Author of "Linux for Non-Geeks--Clear-eyed Answered for Practical Consumers" 
and "Boring Stories from Uncle Rod." Both are available at 
http://www.rodwriterpublishing.com/index.html

To reply by e-mail, take the extra "o" out of the name.

      parent reply	other threads:[~2004-02-20 21:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-20 20:37 Can I change the way emacs saves text files? William Payne
2004-02-20 20:43 ` David Kastrup
2004-02-20 20:55   ` William Payne
2004-02-21  0:26     ` David Kastrup
2004-02-21  9:41       ` Eli Zaretskii
2004-02-21  9:38     ` Eli Zaretskii
2004-02-20 21:13   ` Roodwriter [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=103cu1cmf3vko06@corp.supernews.com \
    --to=roodwriter@core.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).