Browse files

use `eval-after' to bind keys instead of hooking

key-binding should only happen once, not every time ruby-mode is activated.
  • Loading branch information...
lewang committed Apr 2, 2012
1 parent ec0d30a commit fd0eccaedf1928981cb87ac060d74c1b5731fc39
Showing with 1 addition and 1 deletion.
  1. +1 −1 inf-ruby.el
@@ -373,7 +373,7 @@ Module used by readline when running irb through a terminal"
(eval-after-load 'ruby-mode
- '(add-hook 'ruby-mode-hook 'inf-ruby-keys))
+ '(inf-ruby-keys))
(provide 'inf-ruby)
;;; inf-ruby.el ends here

0 comments on commit fd0ecca

Please sign in to comment.