SCIENTIFIC-LINUX-USERS Archives

November 2006

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Manuel Mussini <[log in to unmask]>
Reply To:
Manuel Mussini <[log in to unmask]>
Date:
Tue, 28 Nov 2006 18:55:32 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
Hi,
I'm a dual-boot user (Scientific Linux and Windows XP) because for work
reasons I need both OSs!
I think that you can solve my problem!
How can I tell to emacs (21.3.1 for Windows) to save files in Unix mode? I
mean: if I write a bash script under Windows and then I switch to Linux, the
script doesn't work because of the different EOF for the two OS!
On the web I found a solution from a guy who said to add:

(add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m)

at the end of the .emacs! I tried it but it doesn't work!
The only working solutions I've found are:
   - Windows-solution: use a hex editor to remove the ^Ms
   - Unix-solution: use dos2unix

But I think that there should be a smarter and quick solution to do that!

Could you help me to solve this problem?

Thanks a lot!!!

Bye.

ATOM RSS1 RSS2