From 068a648736c14a8670097dc4c715bc76dbcfe6e6 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 18 Jan 2020 22:37:27 +0000 Subject: Support string/contains? Simple wrapper around s-contains? but in the interest of avoiding a mixture of s.el and stirng.el functions, the wrapper was defined. --- configs/shared/.emacs.d/wpc/string.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configs/shared/.emacs.d/wpc/string.el') 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)) -- cgit 1.4.1