Over at DyerDwelling there’s another great example of using a bit of Elisp to sand down the friction of a recurring task. The task in question is generating an Org link with attributes for an image file in Dired to be inserted into a blog post.
Capturing a file link from Dired is easy, of course, but the goal of this hack was to add some size attributes along with the link. If you know a little Elisp, it’s easy to imagine the necessary code. In any event, the code is there in the post.
It’s just another example of how Emacs makes it easy to automate a lot of routine tasks. One could, of course, simply add the attributes manually or even use something like yasnippet to insert them but a little bit of Elisp make the problem disappear.
If you’re a blogger and sometimes want to add images to your posts, take a look at the DyerDwelling post. Even if it’s not exactly what you want, it should be easy to adapt to your needs.