Archives

You are currently viewing archive for October 2008

Emacs blocks

Even though I've grown to love vim, I'm still an emacs fan. The advantage is that I can now use both equally fluently :-)

One thing I've always found vim to be superior for is inserting blocks of text. No more, for I have learned how to do this in Emacs as well *insert maniacal cackle here*

Select an area in the usual way : press Ctrl-Space to mark the starting point, then navigate to the endpoint (via the arrow keys or Ctrl-n, Ctrl-p, Ctrl-f, Ctrl-b, and the various Meta-key combinations). Once you're satisfied, press Ctrl-x r t and type the text you want to enter into the block, followed by an Enter.

If you've selected one or more columns, the text will replace your selection.

If you haven't selected any columns, the text will simply be inserted.

Another trick (for quickly commenting out several lines of code) is selecting the lines you want to comment, and use

M-x comment-region

w00t!

mailstat

mailstat is a cool little program that reads your .maillog file in order to be able to give you an overview of what new mail has arrived and where it has been put since the last time it was run.

This is extremely important when using procmail - there might be mistakes in your configuration file that makes your mail go to unexpected places. Thanks to mailstat you can still track it down ...

And just for future reference for myself : mailstat comes with procmail ...

Bitlbee and GTalk

To connect to your gtalk account via bitlbee, add the account in the usual way :

account add jabber
Then set the server :

account set /server talk.google.com:5223:ssl

If you get the error "jabber - Couldn't log in: Short write() to server", this means that bitlbee was not compiled with gnutls support. How to fix this depends on your distro :-)

In my case (Gentoo), remerge Bitlbee with the gnutls USE flag.

Happy chatting