Ade rope to ruby

This commit is contained in:
Maciej Szlosarczyk 2017-08-17 16:56:09 +03:00
parent bc1138eb06
commit bfeb3a7f83
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E
3 changed files with 14 additions and 1 deletions

View file

@ -23,6 +23,15 @@
;; Do not insert encoding comments ;;
(setq ruby-insert-encoding-magic-comment nil)
;; Use robe
(defadvice inf-ruby-console-auto (before activate-rvm-for-robe activate)
(rvm-activate-corresponding-ruby))
(eval-after-load 'company
'(push 'company-robe company-backends))
(add-hook 'ruby-mode-hook 'robe-mode)
;; Use web-mode for erb
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))