Archive for the 'Work' Category

How to blog from Emacs

January 30, 2006

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.

Blog from Emacs

January 24, 2006

I know, I promise to explain how to do it, but I’ve been busier than I thought I would be…

I will try to post tomorrow, both about “how-to” and about developments with my knee (which, by the way, is getting better, so no need to worry).

Attempt to blog from Emacs

January 20, 2006

This is an attempt to post a blog from Emacs. I know, there’re lots of nice and shiny applications out there, but I do love Emacs! I use it for nearly everything. If this is successful I might write down how exactly I configured it (believe me, it’s easy enough).