Under Ubuntu, I use a great little utility called xbindkeys to set up system-wide keyboard shortcuts. I have lots of useful shortcuts in it, however, I often want to disable the shortcuts when I'm working with a specific application that they would interfere with, such as in Emacs. Is there a way to prevent xbindkeys from triggering based on the application I'm currently using?
If not, is there an alternative to xbindkeys that does supply this functionality?