smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

No way to match wrapping behavior of electric-pair-mode

Open UwUnyaa opened this issue 2 years ago • 0 comments

Expected behavior

An option to match electric-pair-mode behavior when wrapping regions by typing the opening character is present.

Actual behavior

smartparens behaves differently than electric-pair-mode and provides no option to match it.

Steps to reproduce the problem

  1. Set up smartparens
  2. Select a region to wrap
  3. Type a pair opening character, for example (
  4. Point is at the opening pair, not after it (where region started)

Environment & version information

In recent enough smartparens you can call M-x sp-describe-system to generate this report. Please fill manually what we could not detect automatically. Edit the output as you see fit to protect your privacy.

For the record, sp-describe-system is broken for me, I use straight.el as my package manager, so package-alist doesn't exist.

  • smartparens version: 1.11.0
  • Active major-mode: emacs-lisp-mode
  • Emacs version (M-x emacs-version): "GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8)"
  • Spacemacs/Evil/Other starterkit (specify which)/Vanilla: Vanilla
  • OS: Arch Linux

UwUnyaa avatar Jan 14 '24 16:01 UwUnyaa