Reset sp-pair-overlay-keymap for evil users
Smartparens creates a conditional keybind on C-g when its overlays are present (whether or not they're visible). This causes confusion when evil users are forced to press C-g twice to exit insert mode.
This commit is contained in:
parent
65416ff472
commit
084defb165
1 changed files with 6 additions and 1 deletions
|
@ -487,7 +487,12 @@ files, so we replace calls to `pp' with the much faster `prin1'."
|
|||
;; correct this vile injustice.
|
||||
(setq sp-show-pair-from-inside t)
|
||||
;; ...and stay highlighted until we've truly escaped the pair!
|
||||
(setq sp-cancel-autoskip-on-backward-movement nil))
|
||||
(setq sp-cancel-autoskip-on-backward-movement nil)
|
||||
;; Smartparens conditional binds a key to C-g when sp overlays are active
|
||||
;; (even if they're invisible). This disruptively changes the behavior of
|
||||
;; C-g in insert mode, requiring two presses of the key to exit insert mode.
|
||||
;; I don't see the point of this keybind, so...
|
||||
(setq sp-pair-overlay-keymap (make-sparse-keymap)))
|
||||
|
||||
;; The default is 100, because smartparen's scans are relatively expensive
|
||||
;; (especially with large pair lists for some modes), we reduce it, as a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue