|
From: | Peter Dyballa |
Subject: | Re: elisp to change line endings for new remote file |
Date: | Tue, 7 Oct 2008 11:43:31 +0200 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |