Skip to content

Commit

Permalink
Add Rubocop.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Mar 30, 2016
1 parent 23503f3 commit bb4200a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ anaconda-mode/
flycheck_*.el*
/projectile.cache
*.log
eshell/
2 changes: 1 addition & 1 deletion lisp/init-package.el
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
'anaconda-mode 'py-autopep8

;; ruby
'enh-ruby-mode 'robe 'inf-ruby 'yaml-mode 'yard-mode 'yari
'enh-ruby-mode 'robe 'inf-ruby 'rubocop 'yaml-mode 'yard-mode 'yari

;; scm
'magit 'psvn
Expand Down
3 changes: 3 additions & 0 deletions lisp/init-ruby.el
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
(eval-after-load 'company
'(push 'company-robe company-backends))

;; Rubocop
(add-hook 'enh-ruby-mode-hook #'rubocop-mode)

;; YAML mode
(add-hook 'yaml-mode-hook
'(lambda ()
Expand Down

0 comments on commit bb4200a

Please sign in to comment.