unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: elisp to change line endings for new remote file
Date: Tue, 07 Oct 2008 02:50:50 +0300	[thread overview]
Message-ID: <87prmd1dwl.fsf@kobe.laptop> (raw)
In-Reply-To: 06d7be73-e1e2-4640-b32f-4d5bd9103cd8@k36g2000pri.googlegroups.com

On Mon, 6 Oct 2008 10:07:50 -0700 (PDT), yary <not.com@gmail.com> wrote:
> Hello,
> Hoping someone can write a line or two of elisp for my .emacs file
> that will set the line endings to Unix for any new file opened via
> tramp. I'm using GNU Emacs 23.0.60.1 on Windows, often creating Unix
> files via plink, and usually forgetting to change the line endings
> from DOS when I do. If you've already solved this in your setup,
> please share.

You can change teh line endings later.  Type `C-x RET f' and then, at
the prompt for a coding system, type the name of a coding system with
the "-dos" or "-unix" suffix.

For example, to convert a remote file to UTF-8 with Unix-style line
endings, you can visit the file in a buffer and type:

    C-x RET f utf-8-unix RET



  reply	other threads:[~2008-10-06 23:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-06 17:07 elisp to change line endings for new remote file yary
2008-10-06 23:50 ` Giorgos Keramidas [this message]
2008-10-07  6:42 ` Kevin Rodgers
2008-10-07  9:43 ` Peter Dyballa
     [not found] ` <mailman.434.1223372672.25473.help-gnu-emacs@gnu.org>
2008-10-07 15:41   ` yary
2008-10-08  1:29     ` Kevin Rodgers
     [not found]     ` <mailman.516.1223429355.25473.help-gnu-emacs@gnu.org>
2008-10-17  0:08       ` yary

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=87prmd1dwl.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=help-gnu-emacs@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).