Source

emacs-blogger /

Filename Size Date modified Message
articles
snippets
tests
utils
73 B
1.9 KB
7.8 KB
5.2 KB
3.6 KB
1.1 KB
176 B
1.5 KB
485 B
3.8 KB

Set of emacs commands to use emacs as a blogger client

Emacs is great for anything involving text files, not only code. The use of emacs for blogging seems a natural way instead of using those browser editors, that lacks a lot of power. This is expecially true for developers that writes tutorials on the web, that have nightmares each time they have to post a code snippet on their blog.

This packages contains essential features for a blog client, the purpose is that it has to be useful, no useless function, and a lot of shortcuts and utilities.

Installing

To use the package you have first to install it, unfortunately there are some dependencies since it uses python. In future I'll try to remove them as possible.

Python Dependencies:
  • BeautifulSoup
  • dateutil
  • python-gdata
Emacs Dependencies:
  • pymacs

After satisfying dependencies place the proj directory for example in .emacs.d and add a line on your .emacs:

(load-file "path/to/blogger-mode.el")

Usage

Here's a list of commands, most of them are completely interactive.

blogger-post : when you're editing a buffer using rst-mode or org-mode, you can 'M-x blogger-post' in order to post the article in your blog. The conversion is done automatically.

blogger-update : After posting you may want to add some modification, using this command will update the blog posted.

blogger-show : you can type this command when you want to display a list of post of your blog. It will open a buffer in blogger-mode with a custom keymap.

d -> blogger-delete, delete the post under the cursor g -> blogger-update-view, update q -> blogger-quit, quit t -> blogger-tag, to add tags to the post

Using these commands will prompt you for username, password and blog. You may want to set these variables to save your typing:

(setq blogger-username "username") (setq blogger-password "password") (setq blogger-default-blog-name "Blog Name")