HowTo find and replace NewLine (\n) with EMACS(NT) ?

Immanuel Litzroth
Thu Jan 15 07:26:00 GMT 1998

>>How can i find and replace NewLine (\n) with EMACS (NT) ?
>Emacs uses control-Q as a quote character so you can simple type,

Might I have spotted a small typo? Ctrl-X should be M-x I think. Also the
code will do what you want interactively.
C-q C-j <enter>
C-q C-m <enter>

And if you just want to add C-m before the newlines.
$ <enter>
C-q C-m <enter>

If you need to do this a lot put send me an email and I will send you a
function to put
in your .emacs that will do the replacement with one keystroke (it is not
clear what you
want to replace the newline with)


For help on using this list (especially unsubscribing), send a message to
"" with one line of text: "help".

More information about the Cygwin mailing list