help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elisp to change line endings for new remote file


From: Giorgos Keramidas
Subject: Re: elisp to change line endings for new remote file
Date: Tue, 07 Oct 2008 02:50:50 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix)

On Mon, 6 Oct 2008 10:07:50 -0700 (PDT), yary <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]