My day has been consumed by yak shaving so today’s offering is just a quickie pointing you to a very interesting post from Álvaro Ramírez. In a situation familiar to all of us, Ramírez noticed that every time he wanted to clone a repository, he had to go through the same set of simple but boring steps. Of course when you’re using the world’s most flexible editor that’s a problem crying out for the obvious solution.
Ramírez wanted a solution that would extract the repository URL from the clipboard and clone it into the proper directory. That’s pretty easy to do and he shows a nice bit of Elisp to take care of the task.
This sort of thing happens to me all the time: I’ll be doing some rote chore for the \(n\)th time and suddenly realize that there’s no reason I should be doing this by hand yet again. It’s usually pretty easy to write a little Elisp and reduce the task to a key press.