 			(setq whitespace-line-column 79))))
 (add-hook 'after-change-major-mode-hook
 	  '(lambda () (when (eq major-mode 'java-mode)
-			(setq whitespace-line-column 100))))
+(setq whitespace-line-column 100))))
 
 ;; editor stuff
 (editorconfig-mode 1)

;;; package --- Summary: tory's emacs config
;;; Commentary:
;;; Code:

(add-to-list 'load-path "~/.emacs.d")

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; use `package.el` to install `use-package`, which will then be used to ensure
;; that everything else is installed.

(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa"
				 . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("marmalade"
				 . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("gnu"
				 . "http://elpa.gnu.org/packages/"))
(package-initialize)
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile (require 'use-package))
;;(require 'diminish)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; package configurations

(use-package auto-package-update ; auto updates packages
  :ensure t
  :config (setq auto-package-update-delete-old-versions t)
          (setq auto-package-update-hide-results t)

(setq company-tooltip-align-annotations t)

;;; init.el ends here
