aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-26 19:42:38 -0300
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-26 19:42:38 -0300
commitcd72f5f03dcc3490318920ef95fc09b07ae900da (patch)
treecc2bcb61f4350dce6a5b5ecba12218f25645275f /sx.el
parentf4ba0e2a11581477e412c276080a049d19351361 (diff)
parent7df79a35edcb79e7caca4a0d50fcec54d5f68fef (diff)
Merge pull request #265 from vermiculus/question-mode-line
Question mode line
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 501f1e0..e5e9c3e 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)