 
 ;; Highlight current line
 (global-hl-line-mode)
-
-;; Relative line numbers
-(global-linum-mode)
-(linum-relative-global-mode)
-(setq linum-relative-current-symbol "")
 
 ;; Use 4 spaces instead of tabs
 (setq-default indent-tabs-mode nil)

  (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)))

;; Make Y = y$
(setq-default evil-want-Y-yank-to-eol t)

(add-to-list 'load-path "~/.emacs.d/repos/evil-special-modes" )
(add-to-list 'load-path "~/.emacs.d/repos/rainbow-delimiters" )

(require 'evil)
(require 'dracula-theme)
(require 'key-chord)
(require 'linum-relative)
(require 'autopair)
(require 'rainbow-delimiters)
(require 'magit)
(require 'evil-magit)
(require 'cl)

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

;; Set modes
(evil-mode 1)
(key-chord-mode 1)
(server-mode)
(add-hook 'prog-mode-hook (lambda ()
                            (rainbow-delimiters-mode)
                            (autopair-mode)))

;; Add evil to many places
(if (> emacs-major-version 24)

 ;; If there is more than one, they won't work right.
 '(package-selected-packages
   (quote
    (evil-special-modes use-package rainbow-delimiters linum-relative key-chord evil-magit dracula-theme autopair))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
