diff --git a/configs/shared/.emacs.d/wpc/string.el b/configs/shared/.emacs.d/wpc/string.el index 1b766f520..f8694d5f1 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))