diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-25 22:49:53 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-25 22:49:53 +0000 |
commit | fdc0fc501fc347f2e772575695125fb0bb152d15 (patch) | |
tree | 61947bfa740511b1735a8a3ee053e4ad0e926085 | |
parent | ecaf2877f88fbf77202ee5ab30c55831ff27c24d (diff) |
Add sx--user-@name function to sx.el
-rw-r--r-- | sx.el | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -198,6 +198,13 @@ Return the result of BODY." (add-text-properties p (point) ,properties) result)) +(defun sx--user-@name (user) + "Get the `display_name' of USER prepended with @." + (sx-assoc-let user + (when (stringp .display_name) + (concat "@" .display_name)))) + + ;;; Assoc-let (defun sx--site (data) "Get the site in which DATA belongs. |