From: David Kastrup <dak@gnu.org>
Subject: Re: Can I change the way emacs saves text files?
Date: 21 Feb 2004 01:26:52 +0100 [thread overview]
Message-ID: <x58yixmg4z.fsf@lola.goethe.zz> (raw)
In-Reply-To: c15s82$bea$1@news.island.liu.se
"William Payne" <mikas493_no_s_p_a_m_@student.liu.se> writes:
> "David Kastrup" <dak@gnu.org> wrote in message
> news:x5r7wpmqhw.fsf@lola.goethe.zz...
> > "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.
>
> 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
next prev parent reply other threads:[~2004-02-21 0:26 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 [this message]
2004-02-21 9:41 ` Eli Zaretskii
2004-02-21 9:38 ` Eli Zaretskii
2004-02-20 21:13 ` Roodwriter
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=x58yixmg4z.fsf@lola.goethe.zz \
--to=dak@gnu.org \
/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).