 ;; Choose a theme.
 ;; https://github.com/bbatsov/zenburn-emacs
 ;; Requires: color-theme (install from melpa).
-;; (package-install 'color-theme)
-(require 'color-theme)
+(use-package color-theme
+  :ensure color-theme)
 (load "~/.emacs.d/downloads/molokai/color-theme-molokai.el")
 (color-theme-molokai)
 ;;(load "~/.emacs.d/downloads/zenburn/zenburn-theme.el")

(global-linum-mode t)

;; Highlight git hunks.
;; (package-install 'git-gutter)
(require 'git-gutter)
(global-git-gutter-mode +1)
(git-gutter:linum-setup)


;; Mac OS
;; brew install --HEAD ctags
;; brew install global --with-exuberant-ctags
(use-package ggtags
  :ensure ggtags)
(use-package helm-gtags
  :ensure helm-gtags)
(helm-gtags-mode 1)
(global-set-key (kbd "M-.") 'helm-gtags-dwim)

(use-package projectile
  :ensure projectile)
(projectile-global-mode)

;; Best way (so far) to search for files in repo.
(use-package helm-projectile
  :ensure helm-projectile)
(global-set-key (kbd "C-x f") 'helm-projectile)

(require 'ediff)
