aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-26 23:22:04 -0300
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-26 23:22:04 -0300
commitaa1368c104aebf837fd7654deea8d244428616a2 (patch)
treee4b3f8c9ffe8a4a6e1f8155ad455bf85b2067eb5 /sx.el
parenta603180449f9d17f5f7230638f43e3b2c6ecc363 (diff)
parente3d58d533c77a674324655f940ebc7cbf56f5d88 (diff)
Merge branch 'generate-header-line-from-keymap' into delete-command
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 2e8f8db..194e32f 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)