use evil-smartparens-mode for smartparens-strict mode

This is more dwim in the sense that the normal deleting commands now behave more
like paredit, i.e. region deletion is adjusted to always keep the pairs
balanced.
This commit is contained in:
timor 2017-11-23 10:14:55 +01:00 committed by syl20bnr
parent 1de9bde5f7
commit debd7a010b

View file

@ -25,6 +25,7 @@
(origami :toggle (eq 'origami dotspacemacs-folding-method))
password-generator
smartparens
(evil-smartparens :toggle dotspacemacs-smartparens-strict-mode)
(spacemacs-whitespace-cleanup :location local)
string-inflection
undo-tree
@ -274,6 +275,16 @@
"ipp" 'password-generator-phonetic
"ipn" 'password-generator-numeric))))
(defun spacemacs-editing/init-evil-smartparens ()
(use-package evil-smartparens
:defer t
:init
(progn
(when dotspacemacs-smartparens-strict-mode
(spacemacs/add-to-hooks 'evil-smartparens-mode '(prog-mode-hook comint-mode-hook))))
:config
(spacemacs|diminish evil-smartparens-mode)))
(defun spacemacs-editing/init-smartparens ()
(use-package smartparens
:defer t