                    (line-number-at-pos)
                    ) t))
 
-(add-hook 'ruby-mode-hook
+(add-hook 'enh-ruby-mode-hook
           (lambda ()
             (local-set-key (kbd "C-c r f") 'rspec-compile-file)
             (local-set-key (kbd "C-c r n") 'rspec-compile-on-line)

(add-to-list 'auto-mode-alist '("\\.ru$" . enh-ruby-mode))
(add-to-list 'auto-mode-alist '("Gemfile$" . enh-ruby-mode))

(add-hook 'enh-ruby-mode-hook
          '(lambda ()
             (outline-minor-mode)


(setq flycheck-ruby-executable "/opt/rubies/ruby-2.1.5/bin/ruby")
(setq flycheck-ruby-rubocop-executable "~/rubocop.sh")
(setq enh-ruby-deep-indent-paren nil)

(defun rspec-compile-file ()
  (interactive)
