aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-26 23:21:35 -0300
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-26 23:21:35 -0300
commite3d58d533c77a674324655f940ebc7cbf56f5d88 (patch)
tree75b7b63029cc8ba65dc6fa2d297b5986ad3ef118 /sx.el
parentee4e74f25fdb97faf4cb92952072a42b7b507e2a (diff)
parentcd72f5f03dcc3490318920ef95fc09b07ae900da (diff)
Merge branch 'master' into generate-header-line-from-keymap
Diffstat (limited to 'sx.el')
-rw-r--r--sx.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/sx.el b/sx.el
index e7b62a5..3bc6768 100644
--- a/sx.el
+++ b/sx.el
@@ -187,6 +187,12 @@ If ALIST doesn't have a `site' property, one is created using the
,(macroexpand
`(let-alist ,alist ,@body))))
+(defun sx--pretty-site-parameter (site)
+ "Returned a pretty and capitalized version of string SITE."
+ (mapconcat #'capitalize
+ (split-string site "\\.")
+ " "))
+
;;; Utility Functions
(defun sx--split-string (string &optional separators)