summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-09-28 23:12:50 +0200
committerGravatar Tom Willemse2015-09-28 23:12:50 +0200
commitd2621b43caf289b8b463e91c89d7a337279045d6 (patch)
treef5d50fbb3166dc61ce9eb5d27feb825428b0ee0d /emacs
parent2ac78884b044e065fc6e8bcbb8f4e1c46bd877e0 (diff)
downloaddotfiles-d2621b43caf289b8b463e91c89d7a337279045d6.tar.gz
dotfiles-d2621b43caf289b8b463e91c89d7a337279045d6.zip
Use hydra for projectile-rails
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index e836f0b..5f969ca 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -1356,6 +1356,7 @@ from myaethon2.core.decorators import (
(add-hook 'yas-global-mode-hook 'oni:yas-minor-mode-func)
(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 '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 'ruby-mode-hook 'yard-mode)
(add-hook 'ruby-mode-hook 'eldoc-mode)