Personal tools
Document Actions

emacs replace new line

by Rakotomandimby Mihamina last modified 2008-07-20 10:48

I want to replace an indent style, inserting a "\n" in the middle of "){"

Select all

To select all in Emacs: C-x h.

Emacs string replace

To replace a string, not a regexp: M-x-%.

To make the thing I want

  • C-x h
  • M-x-%
  • ){
  • ) C-q C-j {

Then try on one, with "y" and if it's good, make it all with "!".