   (use-package rbenv
     :defer t
     :init (global-rbenv-mode)
-    :config (add-hook 'ruby-mode-hook
+    :config (add-hook 'enh-ruby-mode-hook
                       (lambda () (rbenv-use-corresponding)))))
 
 (defun ruby/init-rvm ()

  (use-package rvm
    :defer t
    :init (rvm-use-default)
    :config (add-hook 'ruby-mode-hook
                      (lambda () (rvm-activate-corresponding-ruby)))))

(defun ruby/init-ruby-mode ()
  "Initialize Ruby Mode"
  (use-package ruby-mode
    :defer t
    :mode (("\\(rake\\|thor\\|guard\\|gem\\|cap\\|vagrant\\|berks\\|pod\\|puppet\\)file\\'" . ruby-mode)
           ("\\.\\(rb\\|rabl\\|ru\\|builder\\|rake\\|thor\\|gemspec\\|jbuilder\\)\\'" . ruby-mode))))

(defun ruby/init-flycheck ()
  (add-hook 'ruby-mode-hook 'flycheck-mode))

(defun ruby/init-ruby-tools ()
  (add-hook 'ruby-mode-hook 'ruby-tools-mode))

(defun ruby/init-bundler ()
  (use-package bundler
    :defer t
    :init (progn
              (evil-leader/set-key-for-mode 'ruby-mode "mbc" 'bundle-check)
              (evil-leader/set-key-for-mode 'ruby-mode "mbi" 'bundle-install)
              (evil-leader/set-key-for-mode 'ruby-mode "mbs" 'bundle-console)
              (evil-leader/set-key-for-mode 'ruby-mode "mbu" 'bundle-update)
              (evil-leader/set-key-for-mode 'ruby-mode "mbx" 'bundle-exec))))

(defun ruby/init-projectile-rails ()
  (use-package projectile-rails

(defvar ruby-packages
  '(
    ;; package rubys go here
    enh-ruby-mode
    ruby-tools
    flycheck
    ruby-test-mode
