 (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)

  (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 'auto-mode-alist
	     '("\\(Capfile\\|Gemfile\\(?:\\.[a-zA-Z0-9._-]+\\)?\\|[rR]akefile\\)\\'" . ruby-mode))

(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)

(add-hook 'ruby-mode-hook 'robe-mode)

; autocomplete is useful in a variety of situations.
(require 'auto-complete-config)
