Anyone who has ever brought up a dos-formatted file in a recent versions of emacs may (or may not have) noticed that you no longer see the ugly ^M characters at the end of every line.. That is because emacs automagically switches to "DOS" mode for your convenience.
Which is great..
Unless you're trying to get rid of the bloody ^M's easily without going outside of emacs to do it. Then it becomes a pain.
It becomes a bigger pain once you realize there's no easy way to figure out just how to get out of that "DOS" mode.
Well, after long searches.. it's been found.. there is a magic variable that will switch you back to the good 'ol mode that will show off all those ugly ^Ms for your M-% convenience.
inhibit-eol-conversion
So to set it..
M-X set-variable<RET>
inhibit-eol-conversion<RET>
t<RET>
To make it permanent put
(setq-default inhibit-eol-conversion t)
in your .emacs file.
TrackBack URL for this entry: http://www.unix-girl.com/mt/mt-tb.cgi/431
:.,1,$s:^M::g
:%s/^V^M// is quicker to type :)
I also have a perl scrip that will do it as well.. but since I basically live in emacs I prefer to be able to do things like this in it.. Thanks!
#Just ban the "dos" machines in the first place.
#Yah, yah.. everyone's a smart ass :)
#BAN DOS?
Q: ARE YOU DUMB?
take a moron with a computer and tell them to use DOS, and they'll probably start crying. Most people have been pampered with windows er the mac thingy they got there.
Windows and IBM based PC's run in DOS you idiot.
get out of here. you don't know what your talking about.
and i would want to use those shitty macs either.
They are the most cheapest put together computers i have ever seen.
ONE BUTTON ON THE MOUSE? I HAVE FIVE 1-2-3-4-FIVE fingers on ONE HAND!!!. I think mac mouses are designed for amputees!
I am going to bring back Commodore and Amiga computers. They were the best. All the Computer Animation from the early 90's was all done on Amigas. Pixar especially used them. Many small comp. animation companies still do.