The delete-blank-lines function is a simple yet handy tool to have in your bag of tricks. It is bound to C-x C-o. There isn’t a whole lot of magic surrounding it’s usage, so I’ll just quote the built-in help directly:
On blank line, delete all surrounding blank lines, leaving just one.
On isolated blank line, delete that one.
On nonblank line, delete any immediately following blank lines.
Before:
After:
3 responses so far ↓
Cool! One of these days I need to just read through all of simple.el. One nice improvement might be to combine this with
fixup-whitespacelike so:This technique of deletting blank lines , is that done using Word or is it done some otherway?
Gunter, Wha?
Leave a Comment