branch: elpa/inf-ruby
commit fd0eccaedf1928981cb87ac060d74c1b5731fc39
Author: Le Wang <[email protected]>
Commit: Le Wang <[email protected]>

    use `eval-after' to bind keys instead of hooking
    
    key-binding should only happen once, not every time ruby-mode is activated.
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index fb3032440c..85940b545e 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -373,7 +373,7 @@ Module used by readline when running irb through a terminal"
 
 ;;;###autoload
 (eval-after-load 'ruby-mode
-  '(add-hook 'ruby-mode-hook 'inf-ruby-keys))
+  '(inf-ruby-keys))
 
 (provide 'inf-ruby)
 ;;; inf-ruby.el ends here

Reply via email to