 ;; Start maximised
 (add-to-list 'default-frame-alist '(fullscreen . maximized))
 
-;; Select theme
-(load-theme 'solarized-dark t)
-
 ;; Enable useful minor modes
 (global-linum-mode 1)
+(show-paren-mode 1)
 
 ;; https://www.emacswiki.org/emacs/InteractivelyDoThings
 (ido-mode 1)
 (setq ido-enable-flex-matching t)
-
-(global-git-gutter-mode 1)
-
-(show-paren-mode 1)
-(global-company-mode 1)
-
-;; Hooks
-;; (add-hook 'after-init-hook 'global-company-mode)

;; https://github.com/syohex/emacs-git-gutter
(use-package git-gutter
  :ensure t
  :pin melpa)

;; https://github.com/magit/magit
(use-package magit
  :ensure t
  :pin melpa)

;; https://github.com/Fanael/rainbow-delimiters
(use-package rainbow-delimiters

;; https://github.com/bbatsov/solarized-emacs
(use-package solarized-theme
  :ensure t
  :pin melpa
  :config
  (load-theme 'solarized-dark t))

;; https://github.com/zk-phi/sublimity
(use-package sublimity
  :ensure t
  :pin melpa
  :config
  (sublimity-mode 1))

;; https://melpa.org/#/undo-tree
(use-package undo-tree
  :ensure t
  :pin melpa
  :config
  (global-undo-tree-mode 1))

(when (memq window-system '(mac ns))
  (exec-path-from-shell-initialize))
