From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: yary Newsgroups: gmane.emacs.help Subject: elisp to change line endings for new remote file Date: Mon, 6 Oct 2008 10:07:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <06d7be73-e1e2-4640-b32f-4d5bd9103cd8@k36g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223346415 23099 80.91.229.12 (7 Oct 2008 02:26:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 02:26:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 04:27:53 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kn2Id-00051W-Cr for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 04:27:47 +0200 Original-Received: from localhost ([127.0.0.1]:50746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kn2HZ-0003qC-GZ for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Oct 2008 22:26:41 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k36g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 10 Original-NNTP-Posting-Host: 65.208.210.97 Original-X-Trace: posting.google.com 1223312870 31274 127.0.0.1 (6 Oct 2008 17:07:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 6 Oct 2008 17:07:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k36g2000pri.googlegroups.com; posting-host=65.208.210.97; posting-account=d6bTuAkAAADNFwa37uXnhaYqYjfOS8nU User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163106 X-Mailman-Approved-At: Mon, 06 Oct 2008 22:26:26 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58456 Archived-At: 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. Thanks much!