Add rspec to ruby mode
This commit is contained in:
parent
bfeb3a7f83
commit
f4c93cc2bf
3 changed files with 10 additions and 2 deletions
|
|
@ -24,13 +24,17 @@
|
|||
(setq ruby-insert-encoding-magic-comment nil)
|
||||
|
||||
;; Use robe
|
||||
(add-hook 'ruby-mode-hook 'robe-mode)
|
||||
(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)
|
||||
;; User rspec-mode
|
||||
(add-hook 'ruby-mode-hook 'rspec-mode)
|
||||
(eval-after-load 'rspec-mode
|
||||
'(rspec-install-snippets))
|
||||
|
||||
;; Use web-mode for erb
|
||||
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue