[Top][All Lists]

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

Re: setting eol-type for new files

From: Stephen Gildea
Subject: Re: setting eol-type for new files
Date: Tue, 26 Sep 2000 00:24:43 EDT

Thank you for your reply.  I am using Emacs 20.7 on Windows/NT 4.0.

Using Emacs on Solaris, it works fine.  I can specify latin-1-dos for
a new file in file-coding-system-alist, and when it gets written out,
the mode line changes to read "(DOS)" and get get ^M's in the file.
Lovely.  (Sort of.)

But the specific case I want--Emacs on NT, new file on Unix file
system via Samba--doesn't work.

I have this in my .emacs file:

(set-language-environment "latin-1")
(modify-coding-system-alist 'file "\\`[Uu]:" 'latin-1-unix)

This does cause existing files to be latin-1-unix, even if they
have DOS-style ^M's at the end of each line.  I'm not convinced that
is a feature, which is why I ask for a way to specify coding system
separately for new and existing files.

 < Stephen

reply via email to

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