Blogging with Wordpress and Emacs
When it comes to tools, I am a hedgehog rather than a fox. I like to have a small number of tools, and to know them well.
I recently resolved to start writing again. But I decided that I needed to sharpen my pencils first.
I have plans on how publishing and sharing should work. Grand plans. Too grand, perhaps.
So for now, I wrote something simple for myself. Now I can type away, press buttons... publish.
If you like Emacs, Python and Wordpress, this might be interesting to you too. If not, it certainly won't be.
wordpress-python-emacs GitHub repository
Most of the work is being done by this great Python/Wordpress library. Thank you.
I wrote some simple Python scripts. One grabs all my existing blog posts. One looks through their titles, and checks them against the filename to see if this is a new post.
And then there's a very simple Emacs function that calls them to save/publish the current text file.
I could add more things: deleting posts, or a proper workflow for moving from draft to published. Maybe later.
I wrote this post, then hit M-x wordpress-publish-this-file.