 
 (use-package flycheck
   :ensure t
-  :config (setq flycheck-clang-args (quote ("-std=c++17")))
-          (setq flycheck-python-pylint-executable "python3")
-          (setq flycheck-python-flake8-executable "python3")
-          (setq flycheck-checker 'python-flake8)
-          (flycheck-add-next-checker 'python-flake8 'python-pylint)
-          (global-flycheck-mode))
+  :config (flycheck-add-next-checker 'python-flake8 'python-pylint)
+          (global-flycheck-mode)
+  :custom ((flycheck-clang-args (quote ("-std=c++17")))
+            (flycheck-python-pylint-executable "python3")
+            (flycheck-python-flake8-executable "python3")
+            (flycheck-checker 'python-flake8)))
 
 (use-package flycheck-credo
   :init   (add-hook 'flycheck-mode-hook #'flycheck-credo-setup)
-  :config (setq flycheck-elixir-credo-strict t))
+  :custom (flycheck-elixir-credo-strict t))
 
 (use-package flycheck-mix
   :ensure t

(global-set-key (kbd "<f5>") 'compile-go)
(global-set-key (kbd "C-t") 'ansi-term)
(global-set-key [mouse-8] 'previous-buffer)
  (global-set-key [mouse-9] 'next-buffer)
(setq shift-select-mode nil)
(windmove-default-keybindings)
(setq whitespace-style '(face lines-tail))
(global-whitespace-mode)
(delete-selection-mode)
(global-undo-tree-mode)
(add-hook 'prog-mode-hook (lambda () (setq show-trailing-whitespace 1)))

;; c/++ stuff
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))

  :config (bracketed-paste-enable))

(use-package company
  :ensure   t
  :diminish company-mode
  :config   (global-company-mode)
  :custom   ((company-idle-delay 0)
              (company-tooltip-align-annotations t)))

(use-package diminish
  :ensure t)
