Browse Source

Some ruby emacs stufF

master
Taylor Bockman 4 years ago
parent
commit
3248b2813b
  1. 17
      dotfiles/emacs.d/init.el
  2. 9
      dotfiles/emacs.d/package.el

17
dotfiles/emacs.d/init.el

@ -272,6 +272,23 @@ There are two things you can do about this warning:
;; Python testing helpers ;; Python testing helpers
(use-package python-pytest) (use-package python-pytest)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RUBY ;;;;;;;;;;;;;;;;;;
;;
;;
;;
(require 'rvm)
(add-hook 'ruby-mode-hook 'robe-mode)
(eval-after-load 'company
'(push 'company-robe company-backends))
(add-hook 'robe-mode-hook 'ac-robe-setup)
(advice-add 'inf-ruby-console-auto :before #'rvm-activate-corresponding-ruby)
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Save hooks ;; Save hooks
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------

9
dotfiles/emacs.d/package.el

@ -45,6 +45,15 @@
elpy elpy
yaml-mode yaml-mode
slime slime
;; Rails
rinari
;; Ruby autocomplete
robe
;; RVM support
rvm
;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;
;; Test helpers ;; Test helpers

Loading…
Cancel
Save