aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-21 10:48:28 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-21 16:26:11 -0200
commitd73ba0621e1e73df155a09126ecef8df8c2d232a (patch)
tree6c9ba20379384e2123c105d899cc8435b3a55d0f /sx.el
parent755322c4ba96c6ce5a836cfa601da993f8031ac1 (diff)
Standardize prettification of site names.
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 73d874f..fc0af92 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-completing-read (&rest args)