voidynullness

(mis)adventures in software development...

05 July 2011    Programming

Emacs search and replace newline shenanigans

I can’t believe I’ve never had to do this before: replace a string of one or more characters in a buffer with a single newline. But how to tell Emacs the replace text is a literal newline? The obvious escape characters like \n don’t work. After googling, turns out the answer is deceptively simple:

      C-q C-j

Not exactly intuitive, but kinda sorta makes sesnse in an Emacsian way. Weird how I’ve never had to do this …

Read more...


02 July 2011    Technology

First Post

So you know how sometimes when you’re coding or doing some sysadmin kinda thing to try and get the technology to do something you want it to, preferably in the way you want it to do it, and you figure it’s probably something someone else has tried to do in the past and didn’t know how so the question has already been asked on a forum or possibly preemptively answered in a blog post, so the answer …

Read more...


Home   Top