From e8ccec32867e12d70a7cff5c70e4ac91f58dbd20 Mon Sep 17 00:00:00 2001 From: Tom Dalziel Date: Wed, 3 Jan 2024 10:19:30 +0100 Subject: [PATCH] Remove reference to evil-snip-auto-disable-substitute Fixes #82 evil-snipe stopped using this over 6yrs ago --- evil-cleverparens.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/evil-cleverparens.el b/evil-cleverparens.el index 7179a63..336eadf 100644 --- a/evil-cleverparens.el +++ b/evil-cleverparens.el @@ -2150,10 +2150,7 @@ in question." evil-cp-append-key 'evil-cp-append) (add-hook 'evil-insert-state-exit-hook 'evil-cp-insert-exit-hook)) - ;; If evil-snipe is not present or does not want to use s and S bindings, - ;; then we can use them. To take effect, evil-snipe must be loaded before us. - (when (and evil-cleverparens-use-s-and-S - (not (bound-and-true-p evil-snipe-auto-disable-substitute))) + (when evil-cleverparens-use-s-and-S (evil-define-key 'normal evil-cleverparens-mode-map "s" 'evil-cp-substitute "S" 'evil-cp-change-whole-line)))