 (evil-mode 1)
 (key-chord-mode 1)
 (server-mode)
-(autopair-mode)
-(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
+(add-hook 'prog-mode-hook (lambda ()
+                            (rainbow-delimiters-mode)
+                            (autopair-mode)))
 
 ;; Add evil to many places
 (if (> emacs-major-version 24)

(require 'rainbow-delimiters)
(require 'magit)
(require 'evil-magit)

;; ======== General setting ========


  (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line

;; list the packages you want
(setq package-list '(evil magit evil-magit autopair linum-relative key-chord dracula-theme))

;; fetch the list of packages available 
(or (file-exists-p package-user-dir) (package-refresh-contents))

;; install the missing packages
(dolist (package package-list)
  (unless (package-installed-p package)
    (package-install package)))
