Skip to content

Commit

Permalink
feat: disable strict mode if smartparens-mode is turned off
Browse files Browse the repository at this point in the history
This will remove some strict mode map remappings which would otherwise
stay in effect.
  • Loading branch information
Fuco1 committed Jun 29, 2024
1 parent 236748c commit 74d2b65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smartparens.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 74d2b65

Please sign in to comment.