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

(setq-default indent-tabs-mode nil)

;; Automatically closes brackets.
(unless (fboundp 'smartparens-mode)
  (package-install 'smartparens))
(require 'smartparens)
(smartparens-global-mode)
(show-smartparens-global-mode +1)
(electric-indent-mode)

;; Partially use path in buffer name.
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)

;; Get rid of splash screens.

(semantic-mode 1)

(global-set-key (kbd "C-c h o") 'helm-occur)
(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ; rebihnd tab to do persistent action
(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) ; make TAB works in terminal
(define-key helm-map (kbd "C-z")  'helm-select-action) ; list actions using C-z
