Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [PATCH 1/3] make mode keymap easily accessible to hooks
@ 2010-01-25  3:09 Rich Lane
  2010-01-25  3:09 ` [sup-devel] [PATCH 2/3] add keymap rebinding support Rich Lane
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Lane @ 2010-01-25  3:09 UTC (permalink / raw)
  To: sup-devel

---
 lib/sup/mode.rb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/sup/mode.rb b/lib/sup/mode.rb
index c8ad0cc..b9e0698 100644
--- a/lib/sup/mode.rb
+++ b/lib/sup/mode.rb
@@ -10,6 +10,10 @@ class Mode
     @@keymaps[self] = keymap
   end
 
+  def self.keymap
+    @@keymaps[self] || register_keymap
+  end
+
   def initialize
     @buffer = nil
   end
-- 
1.6.3.3

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-27  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-25  3:09 [sup-devel] [PATCH 1/3] make mode keymap easily accessible to hooks Rich Lane
2010-01-25  3:09 ` [sup-devel] [PATCH 2/3] add keymap rebinding support Rich Lane
2010-01-25  3:09   ` [sup-devel] [PATCH 3/3] keybindings hook Rich Lane
2010-02-27  7:34     ` Rich Lane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox