       (bury-buffer)
       (switch-to-buffer-other-frame server-buf))))
 (add-hook 'server-done-hook 'delete-frame)
-
-;; set max line lenghts for various languages
-(add-hook 'after-change-major-mode-hook
-	  '(lambda () (when (eq major-mode 'rust-mode)
-			(setq whitespace-line-column 99))))
-(add-hook 'after-change-major-mode-hook
-	  '(lambda () (when (eq major-mode 'c-mode)
-			(setq whitespace-line-column 80))))
-(add-hook 'after-change-major-mode-hook
-	  '(lambda () (when (eq major-mode 'c++-mode)
-			(setq whitespace-line-column 80))))
-(add-hook 'after-change-major-mode-hook
-	  '(lambda () (when (eq major-mode 'python-mode)
-			(setq whitespace-line-column 79))))
-(add-hook 'after-change-major-mode-hook
-	  '(lambda () (when (eq major-mode 'java-mode)
-(setq whitespace-line-column 100))))
 
 ;; editor stuff
 (editorconfig-mode 1)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; low tech manual configuration

;; theme
(load-theme 'indoors t)

;; ui stuff

;; don't show startup screen in gui mode
(setq inhibit-startup-screen t)

  :config (bracketed-paste-enable))

(use-package company
  :diminish company-mode
  :ensure t)

(use-package diminish
  :ensure t)

(use-package editorconfig
  :ensure t
  :diminish editorconfig-mode
  :config (editorconfig-mode 1))

(use-package flycheck
