 ;; https://company-mode.github.io/
 (use-package company
   :ensure t
-  :pin melpa)
+  :pin melpa
+  :config
+  (global-company-mode 1))
 
 ;; https://github.com/clojure-emacs/clj-refactor.el
 (use-package clj-refactor

;; 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)

;; 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/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))
