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:
parent
1de9bde5f7
commit
debd7a010b
1 changed files with 11 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
||||||
(origami :toggle (eq 'origami dotspacemacs-folding-method))
|
(origami :toggle (eq 'origami dotspacemacs-folding-method))
|
||||||
password-generator
|
password-generator
|
||||||
smartparens
|
smartparens
|
||||||
|
(evil-smartparens :toggle dotspacemacs-smartparens-strict-mode)
|
||||||
(spacemacs-whitespace-cleanup :location local)
|
(spacemacs-whitespace-cleanup :location local)
|
||||||
string-inflection
|
string-inflection
|
||||||
undo-tree
|
undo-tree
|
||||||
|
@ -274,6 +275,16 @@
|
||||||
"ipp" 'password-generator-phonetic
|
"ipp" 'password-generator-phonetic
|
||||||
"ipn" 'password-generator-numeric))))
|
"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 ()
|
(defun spacemacs-editing/init-smartparens ()
|
||||||
(use-package smartparens
|
(use-package smartparens
|
||||||
:defer t
|
:defer t
|
||||||
|
|
Reference in a new issue