Need help getting a hold of lisp

I think I'm misunderstanding how hooks are supposed to work. I want sawfish to detect when I open XMMS and to remove the equalizer and playlist from the alt+tab cycle list. But when I put the code below into my ~/.sawfishrc, sawfish stopped managing all windows :P Help?

(add-hook 'before-add-window-hook
     (lambda (w descr)

       (if (or (string-match-re "XMMS Equalizer" (window-name w))

           (string-match-re "XMMS Playlist" (window-name w)))

       (toggle-window-cycle-skip w))))

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]