unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Subject: Re: Can I change the way emacs saves text files?
Date: Sat, 21 Feb 2004 11:38:23 +0200	[thread overview]
Message-ID: <7137-Sat21Feb2004113823+0200-eliz@elta.co.il> (raw)
In-Reply-To: <c15s82$bea$1@news.island.liu.se> (mikas493_no_s_p_a_m_@student.liu.se)

> From: "William Payne" <mikas493_no_s_p_a_m_@student.liu.se>
> Newsgroups: gnu.emacs.help
> Date: Fri, 20 Feb 2004 21:55:58 +0100
> 
> 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.

Read the section in the on-line manual about text and binary files
(the node name is "Text and Binary").  It describes the
untranslated-file-system feature that does exactly what you want, and
allows to control this on a filesystem or directory basis.  That is,
you can tell Emacs that files created on a certain Windows drive or in
a certain directory and all its subdirectories should have Unix
end-of-line (EOL) format.

For an individual file, typing "C-x RET f unix RET" will cause it to
be saved in the Unix EOL format.  Likewise, "C-x RET f dos RET" will
cause it to be saved in the DOS/Windows EOL format.

  parent reply	other threads:[~2004-02-21  9:38 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 [this message]
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=7137-Sat21Feb2004113823+0200-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    /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).