     :config
     (progn
       (require 'smartparens-config)
+
       (spacemacs|diminish smartparens-mode " (Ⓢ)" " (S)")
+      (custom-set-variables
+       '(sp-cancel-autoskip-on-backward-movement nil))
+
       (defun spacemacs/smartparens-pair-newline (id action context)
         (save-excursion
           (newline)


  (defun spacemacs/evil-state-lazy-loading ()
    (require 'evil-iedit-state)
    (setq evil-iedit-state-cursor `(,(spacemacs/state-color 'iedit) box))   
    (setq evil-iedit-insert-state-cursor `((spacemacs/state-color 'iedit-insert) (bar . 2)))
    ;; activate leader in iedit and iedit-insert states
    (define-key evil-iedit-state-map

        "Initiate a new query."
        (interactive)
        (doc-view-search 'newquery))

      (defun spacemacs/doc-view-search-new-query-backward ()
        "Initiate a new query."
        (interactive)
