Hello everyone, I'd like to make some customizations to the default keymaps for a few modes, and I was wondering what was the safest way to do so. On the Hooks wiki page, the entry for startup.rb shows how to add keystrokes, but based on trying that example out, it appears to work only for adding new keystrokes, not overriding existing ones.
So after poking around at the code a bit, dropping this code into startup.rb seems to work to entirely replace a keymap with my preferences: class Redwood::Mode @@keymaps[Redwood::ThreadViewMode] = Redwood::Keymap.new do |k| # key mappings omitted end end So my questions are: Is this unsafe in any way (other than that new versions of sup may invalidate the specifics of keymap implementation)? And is there a better way? Thanks! -dave _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk