 (require 'dracula-theme)
 (require 'key-chord)
 (require 'linum-relative)
+(require 'autopair)
 
 ;; ======== General setting ========
 

(global-evil-leader-mode)
(evil-mode 1)
(key-chord-mode 1)

;; Remove bloat
(tool-bar-mode -1)

    (save-place-mode 1)
  ((require 'saveplace)
   (setq-default save-place t)))
(setq save-place-forget-unreadable-files nil)

;; Center after search
(defun my-center-line (&rest _)
  (evil-scroll-line-to-center nil))

(advice-add 'evil-search-next :after #'my-center-line)
;; ======== Mappings ========

;; Normal mode on jk
(key-chord-define evil-insert-state-map  "jk" 'evil-normal-state)

;; Insert indentations on tab press
(define-key evil-insert-state-map (kbd "TAB") 'tab-to-tab-stop)

;; Resizing mappings
(evil-leader/set-key
  "h" 'evil-window-decrease-width
  "l" 'evil-window-increase-width
  "j" 'evil-window-increase-height 
  "k" 'evil-window-decrease-height)

;; Move quickly
(evil-leader/set-key
  "w" 'evil-window-up
  "a" 'evil-window-left
  "s" 'evil-window-down
  "d" 'evil-window-right)

;; Delete buffer
(evil-leader/set-key "bd" 'kill-buffer)


;; ======== Custom set variables ========
(custom-set-variables
