From a52267fee555396f2faf1b2c362db34c9ad41dcd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 23 Jun 2018 23:21:02 +0200 Subject: [PATCH] Disable smartparens pair & tag navigation Fixes quirky backspace and autoskipping behavior with html tags or closing delimtiers unpredictably. These might be more useful to non-evil users, but more testing is required. Indirectly fixes #712 --- core/core-editor.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index 2a2c5d569..b61a249ce 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -150,7 +150,14 @@ fundamental-mode) for performance sake." sp-show-pair-delay 0.1 sp-max-pair-length 3) - ;; smartparens conflicts with evil-mode's replace state + ;; Slim down on smartparens' opinionated behavior + (setq sp-navigate-skip-match nil) + (after! (:or smartparens-crystal smartparens-ruby) + (setq sp-navigate-skip-match nil)) + (after! smartparens-html + (setq sp-navigate-consider-sgml-tags nil)) + + ;; smartparenss conflicts with evil-mode's replace state (add-hook 'evil-replace-state-entry-hook #'turn-off-smartparens-mode) (add-hook 'evil-replace-state-exit-hook #'turn-on-smartparens-mode)