It’s time for some more geek fun with Emacs. This time I’m gonna show you a simple way to chat with your messenger friends across XMPP/Jabber (including Google Talk), MSN Messenger, Yahoo! Messenger, AIM and ICQ, all without leaving Emacs.
Things you will need:
- GNU Emacs (of course)
- ERC (emacs IRC client)
- BitlBee server (you can download/install it from http://www.bitlbee.org/main.php/download.html)
So here we go:
To install bitlbee on Ubuntu you can do : sudo apt-get install bitlbee. And to start it: sudo /etc/init.d/bitlbee start.
On OS X if you are using macports you do: sudo port install bitlbee. And to start it: /opt/local/sbin/bitlbee -D.
You can of course configure it by copying and customizing the sample config file that comes with BitlBee but for this simple example we’ll stick to running BitlBee without a config file.
Now that BitlBee is started you can connect to it from any IRC client, but for the purpose of this post, I will choose ERC because it’s nice IRC client for GNU Emacs.
In GNU Emacs do: M-x erc <RET>, type “localhost” for IRC server, leave the port unchanged (6667), chose a nickname (or username) and hit <RET>.
You should now be connected to the bitlbee server running on localhost.

Once you’ve connected to your server (or a public server) you need to register your account and then create a list of the outside IM accounts you want to use or have access to. To register (whether on public or private server) use:
register [password]
After you’ve registered your account on your new server you simply add your accounts.
For Yahoo: account add yahoo handle password <RET>
For MSN: account add msn handle password <RET>
Jabber (Gmail): account add jabber example@gmail.com password talk.google.com:5223:ssl <RET>
All that remains now is to connect to all those accounts, and you do that by typing : account on <RET> and save <RET> to save the above settings.
A few usefull BitlBee commands to get you started would be:
To refresh your buddy list: blist <RET>
To message a buddy: /msg username message <RET>
And of course you can always find more on the BitlBee homepage.