Posting from Emacs

I use Emacs for just about everything, and I just got it set up so that I can write these posts and publish them entirely within Emacs using weblogger.el. The installation and setup process for this is:

  • Download weblogger.el and xml-rpc.el.
  • Add (require ‘weblogger) to your .emacs file
  • Execute M-x weblogger-setup-weblog. This will ask for your server endpoint, which if you are using wordpress will be http://www.yoursite.com/xmlrpc.php. Make sure that RPC posting is enabled in your WordPress setup, as well. It will also prompt for your username and password.

Now, to post an entry, just use M-x weblogger-start-entry. Once you are finished, M-x weblogger-publish-entry will publish your buffer to your blog. By default, C-x C-s will also publish your entry, but if you are like me then you save roughly every other sentence, so I would suggest rebinding C-x C-s to something else.

To add tags to your post, use the ‘Summary’ field and add a comma-delimited list of tags. For example, the field for this entry is:
Summary: emacs, wordpress

Tags: ,

Leave a Reply