 ;; Sort lines (ie. package imports or headers).
 (global-set-key (kbd "M-s l") 'sort-lines)
 
-;; Spellcheck comments and documentation
-;; From http://mwolson.org/projects/emacs-config/init.el.html
-(add-hook 'lisp-mode-hook 'flyspell-prog-mode)
-(add-hook 'emacs-lisp-mode-hook 'flyspell-prog-mode)
-(eval-after-load "cc-mode"
-  '(progn
-     ;; 100-column limit for java.
-     (add-hook 'java-mode-hook
-               (lambda ()
-                 (set-fill-column 100)))
-     ;; 2-char indent for java.
-     (add-hook 'java-mode-hook (lambda ()
-                                 (setq c-basic-offset 2)))
-     (add-hook 'java-mode-hook 'flyspell-prog-mode)
-     (add-hook 'c-mode-hook 'flyspell-prog-mode)))
 (setq css-indent-offset 2)
 
 ;; Thank you Xah Lee.

(require 'whitespace)
(setq whitespace-line-column 100)
(setq whitespace-style '(face lines-tail))
(add-hook 'prog-mode-hook 'whitespace-mode)

;; New browser tab.
(cond
 ((string-equal system-type "darwin") ; Mac OS X
    (defun new-browser-tab ()
      "Open a new browser tab in the default browser."
      (interactive)
      (shell-command "open http://google.com"))


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