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.84k stars 193 forks source link

Is it possible not to activate pair overlay #1130

Closed wang1zhen closed 1 year ago

wang1zhen commented 2 years ago

Hi, I am a evil user and I really love your package. I wonder if it is possible not to activate the pair overlay whenever I insert a pair? As I use C-g to switch back to evil normal state, when smartparens is activated, it is bind to sp-remove-active-pair-overlay, and as a result, when I insert something like (a (b (c (d)))), it would take several times of C-g to get to evil normal state.

Even if I manually unbind C-g in smartparens-mode-map with (general-unbind smartparens-mode-map "C-g"), pressing C-g still executes sp-remove-active-pair-overlay. describe-function sp-remove-active-pair-overlay gives the following information, so I have no idea how to modify it

Key Bindings
This command is not in any keymaps.
Fuco1 commented 2 years ago

Try to unbind it from sp-pair-overlay-keymap.

Fuco1 commented 1 year ago

Closing this to sort through the open issues. If the above did not work, feel free to reopen.