   ;; automatically inserts the corresponding closing parenthesis, and vice versa.
   (use-package elec-pair
     :config
-    (electric-pair-mode))
+    (electric-pair-mode)
+    :custom
+    (electric-pair-delete-adjacent-pairs t))
   t)
 
 

;; GLOBALS
(defvar init-dir (file-name-directory load-file-name))
(defvar var-dir (concat init-dir "var/"))

(defun main()
  (message "Main started")

    (blink-cursor-mode 0)            ;; the blinking cursor is pretty annoying, so disable it.
    (tool-bar-mode 0)                ;; disable toolbar
    (global-prettify-symbols-mode t) ;; render "lambda" as λ
    :custom
    (show-trailing-whitespace t)     ;; show trailing whitespace in all modes
    (indent-tabs-mode nil)           ;; spaces instead of tabs
