summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Dalziel <33435574+tomdl89@users.noreply.github.com>2022-05-03 11:53:22 +0200
committerGitHub <noreply@github.com>2022-05-03 11:53:22 +0200
commit123b30135bcb181d00e351d714263eaa137ae10b (patch)
tree068dcb80a053d49cfcd923382c93a65facbdcde5
parent2bc8aa6425f1311e985cf51ea6b5233c1ee6ce1c (diff)
parent4fbe6bf9ca5d93f455584ee3936f12a9458c1a45 (diff)
Merge pull request #191 from dalanicolai/master
Limit global activation to 'text-mode' and 'prog-mode'
-rw-r--r--evil-surround.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-surround.el b/evil-surround.el
index e20e0cd..0182207 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -493,7 +493,7 @@ Becomes this:
;;;###autoload
(define-globalized-minor-mode global-evil-surround-mode
evil-surround-mode turn-on-evil-surround-mode
- "Global minor mode to emulate surround.vim.")
+ :predicate '(text-mode prog-mode comint-mode))
(evil-define-key 'operator evil-surround-mode-map "s" 'evil-surround-edit)
(evil-define-key 'operator evil-surround-mode-map "S" 'evil-Surround-edit)