Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.8k stars 193 forks source link

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

Open UwUnyaa opened 5 months ago

UwUnyaa commented 5 months ago

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.