 ;; Keep syntax highlighting in the current line.
 ;; (set-face-foreground 'highlight nil)
 
-(use-package whitespace :ensure t)
-(setq whitespace-style '(face lines-tail))
-
 ;;  From http://doc.rix.si/org/fsem.html
 (defun ar/gnulinuxp ()
   "Return t if the system is a GNU/Linux machine, otherwise nil."

  ;; 2-char indent for java.
  (defvar c-basic-offset)
  (setq c-basic-offset 2)
  ;; 100-column limit for java.
  (set-fill-column 100))

(add-hook 'java-mode-hook #'ar/java-mode-hook-function)

(add-hook 'ediff-quit-hook #'ar/ediff-qh)

(use-package whitespace
  :commands (whitespace-mode global-whitespace-mode)
  :config
  ;; When nil, fill-column is used instead.
  (setq whitespace-line-column nil)
  (setq whitespace-style '(face lines-tail)))
(global-whitespace-mode)

(defun ar/compile-autoclose (buffer string)
  "Hide successful builds window with BUFFER and STRING."
