-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruby.el
27 lines (26 loc) · 834 Bytes
/
ruby.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(require 'inf-ruby)
(require 'robe)
(require 'rspec-mode)
(require 'ruby-electric)
(require 'ruby-mode)
(require 'yari) ; ri interface
(require 'ruby-block)
(ruby-block-mode t)
(setq ruby-block-highlight-toggle 'overlay)
(add-hook 'ruby-mode-hook 'inf-ruby-minor-mode)
(add-to-list 'auto-mode-alist '("\\.gemspec$" . ruby-mode))
(setq ruby-deep-arglist nil)
(setq ruby-deep-indent-paren nil)
(add-hook 'ruby-mode-hook 'robe-mode)
(setq rspec-use-rake-when-possible nil)
(require 'haml-mode)
(require 'sass-mode)
(require 'scss-mode)
(setq scss-compile-at-save nil)
(when (darwin?)
;; Switch to the brew ruby from `brew install ruby`
(setq exec-path
(append (list "/usr/local/opt/ruby/bin")
exec-path))
(add-to-ldflags "-L/usr/local/opt/ruby/lib")
(add-to-cppflags "-I/usr/local/opt/ruby/include"))