How to post to Blogger with emacs

July 20, 2008
Although I finally opted to blog in WordPress by using the Weblogger, I did go through all the shenanigans that you have to do in order to post to Blogger with emacs. I have to tell you that there wasn’t a whole lot of documentation outhere to get it done so I’ll try to do so right here. I’m supposing that you already know how to do some basic customizations to emacs. Either way, I’ll try to put in here as much as possible. Ok, so let’s start.

First, if you search on the web for information on how to do it, you’ll find that there used to be a atom-blogger.el for the emacs but ever ince that time (around 2006) the Blogger API has gone through many hanges, so that .el is now obsolete. What you have to do now is ownload the g-client, which is part of emacspeak, Oh! and by the way, id I mention that you have to be using Linux? This thing uses both curl nd xsltproc so you have to be using Linux. Ok, so you’re in Linux great.

Now extract the g-clien to some folder preferably in a folder like ‘/.emacs.d/g-client’ to makethings easier. Now you have to byte-compile verything so while in that folder in the shell, type ‘make’ and that should do it. Depending on how lucky you’re (I wasn’t lucky) you’ll have to create a ile g-cus-load.el and put the next elisp in it:


(provide 'g-cus-load)
(provide 'gblogger)
(provide 'g-loaddefs)

Ok, what we have next to do is add the next lines to your .emacs, the first one is for the load-path, and the other some requires so that the damn thing works.


(add-to-list 'load-path "/YOURHOME/.emacs.d/g-client")
(load-library "g")
(require 'g)
(require 'g-auth)
(require 'g-autogen)
(require 'gblogger)
(require 'gcal)
(require 'g-cus-load)
(require 'g-loaddefs)
(require 'greader)
(require 'g-utils)
(require 'json)

I don’t think that most of the requires are a needed but anyway, having done that you either M-x eval-buffer your .emacs or restart emacs. By ow, the g-client should be loaded to your emacs providing you with all he Google services (calendar, reader, blogger, your mom…).

The next thing to do, is M-x Customize-gro p gblogger, you put in there your user:ZZZZZ@gmail.com and save for future sessions.

…and we are done. Almost. For a new post, you have to M-x blogger-new-entry. It is going to ask you for an URL. You have to rovide it this way: http://XXXXXXX.blogspot.com/atom.xml

It should be working for now. Although it isn’t for me. For some reason hen editing your post you couldn’t either post in spanish (due to the ccents) nor in japanese. My theory is that this g-client is part of the emacspeak project which focuses on helping blind people use a computer so maybe there is no need for international support somehow. But I can see it working for all the English speaking people out there.

Hope that it works for you. Good luck.


HTML escapes whenever I post using Weblogger.el

July 18, 2008

Ok, so I thought of using the weblogger.el extension for the almighty
emacs to post in this blog. Works charmfully, I mean it is great indeed
but there is only a little problem that I can’t seem to resolve given my
limited elisp abilities: whenever i try to give a little bit of format
to my post, the HTML escapes and it just isn’t working. <STRONG> It’s not working
</STRONG>. I became obsessed with this problem during the last two days
and I’ve finally decided to quit using this extension and resume blogging with Flock
until I find a better extension for blogging within Emacs. :’( It seemed
so useful…


First post英語で

July 18, 2008

This is going to be the place where I’ll place anything that I write in English. I didn’t want to mix it with the spanish version.