Skip to content

Commit

Permalink
add rubocop, and flycheck for syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iffyuva committed Oct 12, 2015
1 parent b7b5f5c commit 32c0a77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emacs.d/Cask
Expand Up @@ -39,3 +39,5 @@
(depends-on "less-css-mode")
(depends-on "markdown-mode")
(depends-on "org-trello")
(depends-on "rubocop")
(depends-on "flycheck-tip")
10 changes: 10 additions & 0 deletions emacs.d/mad-coding.el
Expand Up @@ -23,6 +23,13 @@
(require 'company)
(add-hook 'after-init-hook 'global-company-mode)

;; add flycheck mode everywhere.
(require 'flycheck)
(add-hook 'after-init-hook 'global-flycheck-mode)

;; show tip
(require 'flycheck-tip)
(flycheck-tip-use-timer 'verbose)

;; i love this mode!
;; for c and cpp
Expand All @@ -49,6 +56,9 @@
(add-to-list 'auto-mode-alist
'("\\(\\.\\(rb\\|rake\\|gemspec\\)\\|Rakefile\\|Gemfile\\|prawn\\)$" . ruby-mode))

(require 'rubocop)
(add-hook 'ruby-mode-hook 'rubocop-mode)

;; add rspec mode
(require 'compile-rspec)

Expand Down

0 comments on commit 32c0a77

Please sign in to comment.