Wow! This is exactly what I needed. And it also reminds me that my Emacs config desperately needs a refactor. Today seems to be a good time to do it :-) Thanks for sharing! (and of course, for writing it too in case you are also the author)
I'm not the author, but as I found this little gem I suspected the HN crowd might find it useful. (and if you're in the mood to hack your emacs conf I suggest having a look at org-babel, I found that a literate approach to my emacs conf is the only way to stay sane)
Yes 100% agree. I just switched over to emacs 24 starter kit for just this reason!