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

(bind-key "M-t M-t" 'transpose-words)
(bind-key "M-t s" 'transpose-sexps)

;; (package-install 'rainbow-delimiters)
(require 'rainbow-delimiters)
(global-rainbow-delimiters-mode)

(unless (fboundp 'hungry-delete-mode)
  (package-install 'hungry-delete))
(require '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)
(global-set-key (kbd "C-c w") 'er/expand-region)

(require 'helm)

;; From http://tuhdo.github.io/helm-intro.html
;; must set before helm-config,  otherwise helm use default

(set-face-attribute 'linum nil :background "#333333")
(set-face-attribute 'fringe nil :background "#333333")

(use-package ido-vertical-mode
  :ensure ido-vertical-mode)
(ido-vertical-mode)

(use-package markdown-mode+
  :ensure markdown-mode+)
(autoload 'markdown-mode "markdown-mode"
  "Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
