smartparens
smartparens copied to clipboard
No way to match wrapping behavior of electric-pair-mode
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
- Set up smartparens
- Select a region to wrap
- Type a pair opening character, for example
( - 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.
smartparensversion: 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