After switching to emacs I quickly noticed that I was missing a simple keystroke for duplicating a line. Yes, I know it’s as easy as C-a, C-k, C-y, Enter, C-y. Still, I wanted a keystroke. So, I coded up the following snippet. It’s similar to what you’…

Read more at the source