Skip to content
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...
1 parent ec0d30a commit fd0eccaedf1928981cb87ac060d74c1b5731fc39 @lewang lewang committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 inf-ruby.el
View
2 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

0 comments on commit fd0ecca

Please sign in to comment.
Something went wrong with that request. Please try again.