all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: yary <not.com@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: elisp to change line endings for new remote file
Date: Tue, 7 Oct 2008 11:43:31 +0200	[thread overview]
Message-ID: <BBA1518E-3399-47A8-9974-334BD0106E2D@Web.DE> (raw)
In-Reply-To: <06d7be73-e1e2-4640-b32f-4d5bd9103cd8@k36g2000pri.googlegroups.com>


Am 06.10.2008 um 19:07 schrieb yary:

> 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.


There is before-save-hook. It could be (time-stamp). You could add  
(via the customisation interface) another function that changes from  
DOS to UNIX file endings, (set-buffer-file-coding-system coding- 
system &optional force nomodify).

Another option is to put into your init file:

	(prefer-coding-system	 'utf-8-unix)

although I doubt that this would change *existing* line endings.  
Can't plink be taught to prefer UNIX style line endings? If it's so  
dumb than you should learn to prefer GNU Emacs and TRAMP ...

--
Greetings

   Pete

Upgraded, adj.:
	Didn't work the first time.







  parent reply	other threads:[~2008-10-07  9:43 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
2008-10-07  6:42 ` Kevin Rodgers
2008-10-07  9:43 ` Peter Dyballa [this message]
     [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BBA1518E-3399-47A8-9974-334BD0106E2D@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=not.com@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.