Open jgarvin opened 4 years ago
This is a bit of a confusion and stupid API design. You need to do
(sp-local-pair 'rust-mode "'" nil :actions nil) ;; nil not :rem
:rem
removes the entire local definition, but you have no local definition, only the global one which is inherited. To keep the global one working everywhere except in rust mode, you set the actions for the rust mode to nothing thus effectively ignore the pair for inserting/wrapping/navigating etc.
Expected behavior
(sp-local-pair 'rust-mode "'" nil :actions :rem)
Should run but doesn't. This does work though:
(sp-pair "'" nil :actions :rem)
Actual behavior
Steps to reproduce the problem
Just paste into
*scratch*
and evalEnvironment & version information
In recent enough
smartparens
you can callM-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.smartparens
version: 20200324.2147major-mode
:debugger-mode
M-x emacs-version
): GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.12, cairo version 1.16.0) of 2020-03-28