From: gwjiang@gmail.com (g.w)
To: help-gnu-emacs@gnu.org
Subject: Re: How can replace some word with a real new line in Emacs?
Date: Thu, 19 Mar 2009 14:19:01 +0800 [thread overview]
Message-ID: <r0ab7it4q2.fsf@gmail.com> (raw)
In-Reply-To: mailman.3544.1237440736.31690.help-gnu-emacs@gnu.org
Hi mgx,
>>>>> mgx0018 <mgx0018@yeah.net> 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?
next parent reply other threads:[~2009-03-19 6:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3544.1237440736.31690.help-gnu-emacs@gnu.org>
2009-03-19 6:19 ` g.w [this message]
2009-03-18 15:58 How can replace some word with a real new line in Emacs? mgx0018
2009-03-19 9:13 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=r0ab7it4q2.fsf@gmail.com \
--to=gwjiang@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.