branch: elpa/smartparens
commit 74d2b65531d7004f3b9baadb5d986bb719faee6e
Author: Matus Goljer <matus.gol...@gmail.com>
Commit: Matus Goljer <matus.gol...@gmail.com>

    feat: disable strict mode if smartparens-mode is turned off
    
    This will remove some strict mode map remappings which would otherwise
    stay in effect.
---
 smartparens.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/smartparens.el b/smartparens.el
index a81d0a632a..d82a2c9f33 100644
--- a/smartparens.el
+++ b/smartparens.el
@@ -743,6 +743,8 @@ You can enable pre-set bindings by customizing
         (add-hook 'pre-command-hook 'sp--save-pre-command-state nil 'local)
         (add-hook 'post-command-hook 'sp--post-command-hook-handler nil 'local)
         (run-hooks 'smartparens-enabled-hook))
+    (when smartparens-strict-mode
+      (smartparens-strict-mode -1))
     (remove-hook 'self-insert-uses-region-functions 'sp-wrap--can-wrap-p 
'local)
     (remove-hook 'post-self-insert-hook 'sp--post-self-insert-hook-handler 
'local)
     (remove-hook 'pre-command-hook 'sp--save-pre-command-state 'local)

Reply via email to