about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configs/shared/.emacs.d/wpc/string.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/shared/.emacs.d/wpc/string.el b/configs/shared/.emacs.d/wpc/string.el
index 1b766f5207a3..f8694d5f18a1 100644
--- a/configs/shared/.emacs.d/wpc/string.el
+++ b/configs/shared/.emacs.d/wpc/string.el
@@ -22,6 +22,10 @@
 (defconst string/test? t
   "When t, run the tests.")
 
+(defun string/contains? (c x)
+  "Return t if X is in C."
+  (s-contains? c x))
+
 (defun string/hookify (x)
   "Append \"-hook\" to X."
   (s-append "-hook" x))