ruby: clean up

This commit is contained in:
Henrik Lissner 2016-05-20 17:27:25 -04:00
parent 3f9784ccd5
commit f38d868504
2 changed files with 4 additions and 19 deletions

View file

@ -1,14 +0,0 @@
;;; defuns-ruby.el
;;;###autoload
(defun narf|ruby-load-file (&optional file)
(let ((file (or file buffer-file-name)))
(when (and (eq major-mode 'ruby-mode)
(featurep 'robe)
(not (string= (f-base file) "Gemfile"))
(file-exists-p buffer-file-name))
(unless robe-running (robe-start 1))
(when robe-running (ruby-load-file file)))))
(provide 'defuns-ruby)
;;; defuns-ruby.el ends here