   (let ((m prog-mode-map))
     (define-key m [f6] 'recompile))
   ;; Show trailing whitespace.
-  (set (make-local-variable 'show-trailing-whitespace)
-       t))
-
+  (set (make-local-variable 'show-trailing-whitespace) t)
+  ;; Spellcheck comments and documentation
+  ;; From http://mwolson.org/projects/emacs-config/init.el.html
+  (flyspell-prog-mode)
+  (whitespace-mode)
+  (rainbow-delimiters-mode))
 (add-hook 'prog-mode-hook 'ar/prog-mode-hook)
 
 (use-package centered-cursor-mode


;; No need to confirm killing buffers.
(global-set-key [(control x) (k)] 'kill-this-buffer)

;; Keep same window for pop-ups (ie. help-mode).
;; From http://www.emacswiki.org/emacs/OneWindow
(setq pop-up-windows nil)


;; Move buffer file.
;; From: https://sites.google.com/site/steveyegge2/my-dot-emacs-file
(defun ar/move-buffer-file (dir)
  "Moves both current buffer and file it's visiting to DIR." (interactive "DNew directory: ")
  (let* ((name (buffer-name))
         (filename (buffer-file-name))
