Emacs Blogging
I have been trying to figure out how to turne-blog into the perfect bloggingclient for myself. It was missingmarkdown syntaxand the ability to not have to enter my username and passwordeverytime.
Markdown Syntax
I added some code to e-blog to have it pass the post through a filterprogram before posting it to blogger. Using python markdown andhtml2text I was able to accomplish this. It now converts frommarkdown to html on the way up to blogger and then html to markdown onthe way back. The markdown that comes back is slightly different thanwhen it goes up due to the markdown having several ways to representthe same thing. In practice that hasn't been a problem, I'm sure I'llstart writing markdown the way that python-html2text writes it if Ireally start editing my posts much. I doubt I will.
Credentials
This problem was slightly easier than the one above. I just had tofigure out the variables it was using and make them customizableparameters. Now they are stored in my emacs.el and passwords.elfiles. I don't worry about people reading my passwords.el file as myhard drive is encrypted. But, if one were worried about that, settingthe username is a good enough time saver.
General
Generally speaking, I'm taking the week off. So much rest for me!!I'll probably start hacking cobbler a bit tomorrow or play with TurboGears. I'm not sure, depends on how the spirit moves me.
0 comments:
Post a Comment