Re: Need help getting a hold of lisp



On Tue, 08 Feb 2005 16:24:34 +0000, dataangel <k04jg02 kzoo edu> wrote:
> I think I'm misunderstanding how hooks are supposed to work. I want
<<snip>>

Greetings,
   I got your code to work with a two small modifications.  First, the
hook appears to take only one argument, the window, not two.  
Secondly, I have no string-match-re function defined, so I replaced
that with string-match.  The resulting function worked for me:

(add-hook 'before-add-window-hook

 (lambda (w)

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

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

)

HTH



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