We Recommend

Beginning VB.NET Beginning VB.NET
Visual Basic .NET is the latest version of the most widely used programming language in the world, popular with professional developers and complete beginners alike. This book will teach you Visual Basic .NET from first principles. You'll quickly and easily learn how to write Visual Basic .NET code and create attractive windows and forms for the users of your applications.


Posted By

noah on 06/02/07


Tagged

emacs formatting newline


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

melling


remove blank lines command


Published in: Emacs Lisp 


Delete doubled newlines from the current buffer. Only works on completely empty lines, not lines that contain whitespace.


  1. ;;;KILL-BLANK-LINE function
  2. (defun undouble-newline ()
  3. "Delete doubled newlines from the current buffer."
  4. (interactive)
  5. (save-excursion
  6. (replace-regexp "\n\n" "\n")))

Report this snippet 

You need to login to post a comment.