From 74d2b65531d7004f3b9baadb5d986bb719faee6e Mon Sep 17 00:00:00 2001 From: Matus Goljer Date: Sat, 29 Jun 2024 22:28:15 +0200 Subject: [PATCH] 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 a81d0a63..d82a2c9f 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)