From 2dfc86b61013cfb3dd5bbf4281986bdc59b61df8 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 26 May 2024 23:50:34 +0100 Subject: [PATCH] fix(text-editing/smartparens): disable navigate action on {} pair --- modules/text-editing/siren-smartparens.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/text-editing/siren-smartparens.el b/modules/text-editing/siren-smartparens.el index f933af5..fd754a3 100644 --- a/modules/text-editing/siren-smartparens.el +++ b/modules/text-editing/siren-smartparens.el @@ -55,6 +55,12 @@ ;; 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))