 (add-to-list 'auto-mode-alist
 	     '("\\(Capfile\\|Gemfile\\(?:\\.[a-zA-Z0-9._-]+\\)?\\|[rR]akefile\\)\\'" . ruby-mode))
 
-; yasnippet by default reads from ~/.emacs.d/snippets
-(require 'yasnippet)
-(yas-global-mode 1)
+(require 'flymake-ruby)
+(add-hook 'ruby-mode-hook 'flymake-ruby-load)
+(global-set-key (kbd "C-c [") 'flymake-goto-prev-error)
+(global-set-key (kbd "C-c ]") 'flymake-goto-next-error)
+(global-set-key (kbd "C-c \\") 'flymake-display-err-menu-for-current-line)
 
-;; Yasnippet & auto-complete both use tab by default...
-;; Remove Yasnippet's default tab key binding
-(define-key yas-minor-mode-map (kbd "<tab>") nil)
-(define-key yas-minor-mode-map (kbd "TAB") nil)
-;; Set Yasnippet's key binding to shift+tab.
-(define-key yas-minor-mode-map (kbd "<backtab>") 'yas-expand)
+(add-hook 'ruby-mode-hook 'robe-mode)
 
 ; autocomplete is useful in a variety of situations.
 (require 'auto-complete-config)

  (package-initialize)
  (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
  )
; With emacs-24.3.1, install: (yasnippet, yaml-mode, psvn, js2-mode, jedi-direx, jedi, ac-js2)

; Extra modes
; Interactively Do Things (Ido)
(require 'ido)
(ido-mode t)

(add-to-list 'load-path "~/.emacs.d/modes")
(require 'psvn)

(add-to-list 'load-path "~/.emacs.d/modes/yaml-mode/")
(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
(add-hook 'yaml-mode-hook 'flymake-yaml-load)

(add-to-list 'load-path "~/.emacs.d/modes/ruby-mode/")
(require 'ruby-mode)
