about summary refs log tree commit diff
path: root/configs/shared/.emacs.d/wpc/string.el
diff options
context:
space:
mode:
Diffstat (limited to 'configs/shared/.emacs.d/wpc/string.el')
-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 1b766f5207..f8694d5f18 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))