add hook to multiple mode simultaneously

Makes it easy to add hook to multiple modes. Now works with enhanced-ruby-mode too.