A pack to wrap the setuping of org2blog, an excellent org-mode to wordpress mode for emacs.
This is licensed under GPLv3.
This is compatible with emacs-live-packs and prelude-packs.
Add this snippet in your .emacs-live.el
:
(emacs-live-packs/add-live-packs "~/.emacs-live-packs/" '("blog-pack"))
Add this snippet in your prelude-packs.el
:
(prelude-packs/load-packs "~/.prelude-packs/" '("blog-pack"))
Create a ~/.authinfo.gpg
file with your wordpress credentials your blog description:
In a line, add your wordpress credentials in a machine blog
line:
machine blog login some-login password some-password
The machine blog
is static, do not change it.
Example:
machine blog login tony password "this is a password for my blog"
Note If you have space in your password, indeed quote the password with ".
In another line, add the machine blog-description
entry like this:
machine blog-description blog-name your-blog-name blog-url-rpc http://your-wordpress-blog.com/blog/xmlrpc.php
Example:
machine blog-description blog-name tony-blog blog-url-rpc http://tony-blog.fr/blog/xmlrpc.php
The machine blog-description
is static too, so do not change it.
Ok, now you're all ready to go.
Start emacs. Open a org-mode file and write whatever you wish.
When ready to publish a draft, hit C-t d
.
When ready to publish, hit C-t p
.