Thursday, June 25, 2009

Sound in rcirc for bitlbee

I use bitlbee. A lot. It's almost the only thing i use anymore for IM's. But one thing i've missed is sound notifications when someone is talking to me, so i looked into rcirc and found some beep code on the emacs wiki.

hacked it up and here goes :

(add-hook 'rcirc-print-hooks 'my-rcirc-print-hook)
(setq alert "uri=file:///usr/share/sounds/purple/alert.wav")

(defun my-rcirc-print-hook (process sender response target text)
(when (and (string-match (rcirc-nick process) text)
(not (string= (rcirc-nick process) sender))
(not (string= (rcirc-server-name process) sender)))
(call-process "/usr/bin/gst-launch-0.10" nil nil nil "playbin" alert)

Tuesday, June 23, 2009

Grouping in gnus

S-l-# to put a particular mailbox/newsgroup into #'s queue
then to check it
# g

Really handy if you subscribe to RSS like i do.

Monday, June 22, 2009

Also to remove white space lines

In emacs, C-x C-o on a blank line will help you remove serious amounts of whitespace lines.

Really handy when you are coding or hit enter too many times in your writing.

browse kill ring

If you use emacs, you owe it to yourself to get this and add to your emacs:

(require 'browse-kill-ring)