Use hydra for projectile-rails

This commit is contained in:
Tom Willemse 2015-09-28 23:12:50 +02:00
parent 2ac78884b0
commit d2621b43ca

View file

@ -1356,6 +1356,7 @@ from myaethon2.core.decorators import (
(add-hook 'yas-global-mode-hook 'oni:yas-minor-mode-func) (add-hook 'yas-global-mode-hook 'oni:yas-minor-mode-func)
(add-hook 'ert-results-mode-hook (lambda () (setq truncate-lines nil))) (add-hook 'ert-results-mode-hook (lambda () (setq truncate-lines nil)))
(add-hook 'ruby-mode-hook (lambda () (setq-local fci-rule-column 80))) (add-hook 'ruby-mode-hook (lambda () (setq-local fci-rule-column 80)))
(add-hook 'projectile-rails-mode-hook (lambda () (define-key projectile-rails-mode-map (kbd "C-c r") 'hydra-projectile-rails/body)))
(add-hook 'projectile-mode-hook 'projectile-rails-on) (add-hook 'projectile-mode-hook 'projectile-rails-on)
(add-hook 'ruby-mode-hook 'yard-mode) (add-hook 'ruby-mode-hook 'yard-mode)
(add-hook 'ruby-mode-hook 'eldoc-mode) (add-hook 'ruby-mode-hook 'eldoc-mode)