 (bind-key "M-t M-t" 'transpose-words)
 (bind-key "M-t s" 'transpose-sexps)
 
-;; (package-install 'rainbow-delimiters)
-(require 'rainbow-delimiters)
+(use-package rainbow-delimiters
+  :ensure rainbow-delimiters)
 (global-rainbow-delimiters-mode)
 
-(unless (fboundp 'hungry-delete-mode)
-  (package-install 'hungry-delete))
-(require 'hungry-delete)
+(use-package hungry-delete
+  :ensure hungry-delete)
 (global-hungry-delete-mode)
-
 (global-auto-revert-mode)
 (global-font-lock-mode)
 
-;;(unless (fboundp 'expand-region)
-;;  (package-install 'expand-region))
-(require 'expand-region)
+(use-package expand-region
+  :ensure expand-region)
 (global-set-key (kbd "C-c w") 'er/expand-region)
 
-(require 'helm)
+(use-package helm
+  :ensure helm)
 
 ;; From http://tuhdo.github.io/helm-intro.html
 ;; must set before helm-config,  otherwise helm use default

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

             '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)

(if (not (package-installed-p 'use-package))
    (progn
      (package-refresh-contents)
      (package-install 'use-package)))
(require 'use-package)

(use-package bind-key
  :ensure bind-key)

;; From http://pages.sachachua.com/.emacs.d/Sacha.html#sec-1-7-3
;; Transpose stuff with M-t
