 
 (use-package rainbow-delimiters
   :ensure rainbow-delimiters)
-(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
 
 (use-package hungry-delete
   :ensure hungry-delete)

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

  ;; Saving point to register enables jumping back to last change at any time.
  (ar/save-point))

(defun ar/java-mode-hook ()
  "Called when entering java-mode"
  ;; 100-column limit for java.
  (set-fill-column 100)
  ;; 2-char indent for java.
  (setq c-basic-offset 2))
(add-hook 'java-mode-hook 'ar/java-mode-hook)

(defun ar/prog-mode-hook ()
  "Called when entering all programming modes."
  (add-hook 'after-change-functions
