-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmacsTips.txt
36 lines (22 loc) · 1.26 KB
/
EmacsTips.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
=======================================================================
Emacs Control M Trick
Date: Fri, 09 Aug 1996 20:15:45 -0500
From: David Ishee <[email protected]>
Subject: $0.02 tip for removing Control M in emacs
After looking at issue 8 about how to remove the pesky Control-M character in vi (vim or whatever) I had to also tell how it could be done in emacs. Say you loaded up a file that has the ^M all over the place. No problem, say M-x replace-string RET C-q C-M RET RET and you're done. Emacs rulz!!
David
=======================================================================
From: "Jason M. Lenthe" <[email protected]>
Subject: Re: [Plug] removing ^M from emacs
Date: Wed, 23 Jun 1999 07:53:55 -0400
Reply-to: [email protected]
Sender: [email protected]
My favorite way of doing this is at the command prompt do:
cat <FileName> | tr -d '\r' > out; mv out <FileName>
At 01:21 AM 6/23/99 -0400, you wrote:
>I have code created on windows that I want use on emacs. the text file
>created on windows has a ^M at the end of the line when read in from
>emacs. How do I get rid of those ^M?
=======================================================================