Posted By

noah on 06/01/07


Tagged

regex css emacs elisp


Versions (?)

Emacs regular expression to match curly brackets without breaks before them


 / Published in: Emacs Lisp
 

To be run from the mini-buffer. For formatting CSS files. Doesn't allow for whitespace :( Use C-q C-j to insert the newline in the replacement string.

  1. ;M-x replace-regexp RET
  2. \({\)\(\w\)
  3. ;RET
  4. \1
  5. \2

Report this snippet  

You need to login to post a comment.