 
 ;; Automatically closes brackets.
 (electric-pair-mode)
+;; Additional electric pairs.
+(setq electric-pair-pairs '((?\{ . ?\})
+                            (?\< . ?\>)))
 (electric-indent-mode)
 
 ;; Highlight matching parenthesis.
 (show-paren-mode)
+;; Highlight entire bracket expression.
+(setq show-paren-style 'mixed)
 
 ;; Partially use path in buffer name.
 (require 'uniquify)

;; displays hex strings representing colors
(use-package rainbow-mode
  :ensure t)

;; Activate smerge on conflicts.
(defun sm-try-smerge ()

  "Search current repo/project using ag."
  (interactive)
  (helm-do-ag (projectile-project-root)))

;; http://stackoverflow.com/questions/6133799/delete-a-word-without-adding-it-to-the-kill-ring-in-emacs
(defun ar/backward-delete-word (arg)
  "Delete characters backward until encountering the beginning of a word.
With argument ARG, do this that many times."
  (interactive "p")
  (delete-region (point)
                 (progn
                   (backward-word arg)
                   (point))))
(global-set-key (kbd "M-DEL") 'ar/backward-delete-word)
(global-set-key (kbd "<C-backspace>") 'ar/backward-delete-word)

(use-package helm-dash
  :ensure t
