Pages

Search This Blog

February 07, 2013

Emacs Tips and Tricks

I compile some of the tips and tricks I learn about Emacs here.

Removing Control-M with emacs
Files can get corrupted with line breaks, especially after transferring files from one computer to the other. These line breaks display as "^M" after each line when opening such a file with emacs. You can remove them using the command replace-string : "Alt-x replace-string". Type the string to replace as "Ctrl-Q Ctrl-M" and press enter when prompted for the string to replace with.


No comments:

Post a Comment