help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can replace some word with a real new line in Emacs?


From: g.w
Subject: Re: How can replace some word with a real new line in Emacs?
Date: Thu, 19 Mar 2009 14:19:01 +0800
User-agent: Emacs Gnus

Hi mgx,

>>>>> mgx0018  <address@hidden> writes:

    > Hello, In Emacs, What command can replace some word or symbol with a real
    > newline.  For example, I have a text file like this:

    > int a;int b;intc;

    > After I exec the command that replae the ";" with ";" and new line, the
    > text will like this:

    > int a; int b; int c;

    >       What command can do this? Thanks very much!!

try:
  M-% ; RET ; C-q C-j RET
or
  M-: (replace-string ";" ";\n")

HTH
g.w
-- 
Life is like a prison, can you break it?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]