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))