Finally got a minute to write how exactly I configured my Emacs to blog. First thing you need is the mt.el and xml-rpc.el files (you can grab them from http://www.marginalia.org/code/mt.el and http://www.marginalia.org/code/xml-rpc.el respectively. Place them somewhere (I choose to drop them into ~/.emacs.d/ directory). Add following lines to your ~/.emacs file:
(add-to-list ‘load-path “/home/misha/.emacs.d/”)
(require ‘mt)
(global-set-key “\C-cwc” ‘weblog-create-post)
(global-set-key “\C-cwr” ‘weblog-retrieve-recent-posts)
(global-set-key “\C-cwg” ‘weblog-retrieve-post)
(setq weblog-id “1″)
(setq weblog-username “username”)
(setq weblog-password “password”)
(setq weblog-url “http://username.wordpress.com/xmlrpc.php”)
Make sure you’re replaced username and password in the weblog-username, weblog-password and weblog-url statements. Comments from the mt.em are worth printing out, as they explain how to use the thing.
Depending on your installation of Emacs things might not work with only mt.el file. You need to have w3 web browser for Emacs installed. On my Debian Testing system I had to install following additional packages: w3-url-e21 and w3-el-e21.
October 7, 2006 at 3:20 am
[...] http://ektich.wordpress.com/2006/01/30/how-to-blog-from-emacs/ [...]