From 64d520c1d508965977a7355487b9986bcf98fc86 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 15 Jul 2024 10:48:30 +0100 Subject: [PATCH] revert(text-editing/smartparens): disable navigate action on {} pair This reverts commit 2dfc86b61013cfb3dd5bbf4281986bdc59b61df8. Removing navigate action on {} pair has a lot more side effects which are very annoying. I will need to find another workaround. --- modules/text-editing/siren-smartparens.el | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/text-editing/siren-smartparens.el b/modules/text-editing/siren-smartparens.el index 5cbc83c..b671770 100644 --- a/modules/text-editing/siren-smartparens.el +++ b/modules/text-editing/siren-smartparens.el @@ -55,12 +55,6 @@ ;; smart pairing for all (require 'smartparens-config) - ;; Re-define {} pair to remove the navigate action. This allows for manually - ;; inserting a } character, otherwise it would always jump to the next - ;; existing } character, preventing you from manually inserting one where you - ;; want. - (sp-pair "{" "}" :actions '(wrap insert autoskip)) - (defun sp-transpose-sexp-reverse () (interactive) (sp-transpose-sexp -1))