[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sup-devel] [PATCH 1/3] make mode keymap easily accessible to hooks
---
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