   ;; html-mode
   (setup-expecting "html-mode" "sgml-mode"
     (sp-with-modes '(html-mode sgml-mode)
-      (sp-local-pair "<" ">"))))
-
-(setup-after "smartparens-config"
+      (sp-local-pair "<" ">"))
   ;; sp keys
   (define-key sp-keymap (kbd "C-M-f") 'sp-forward-sexp)
   (define-key sp-keymap (kbd "C-M-b") 'sp-backward-sexp)


;; helm
(setup "helm-config"
  (helm-mode t)
  (global-set-key (kbd "M-t") 'helm-cmd-t)
  (global-set-key (kbd "C-x c g") 'helm-do-grep)
  (global-set-key (kbd "C-x c o") 'helm-occur)

  (define-key sp-keymap (kbd "C-c C-a") 'sp-kill-to-beginning-of-sexp)
  (define-key sp-keymap (kbd "C-c C-e") 'sp-kill-to-end-of-sexp)
  (define-key sp-keymap (kbd "C-c M-a") 'sp-copy-to-beginning-of-sexp)
  (define-key sp-keymap (kbd "C-c M-e") 'sp-copy-to-end-of-sexp)))

                                        ; don't use shift to mark things; smartparens overwrites this anyway, but be explicit about it
(setq shift-select-mode nil)
