diff options
author | Sean Allred <code@seanallred.com> | 2014-11-12 22:15:16 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-12 22:15:16 -0500 |
commit | f1c3473e5b6d20c80b2f2f2ae569748fc247fccd (patch) | |
tree | b45a3ccba7a04c07fb9452903780c1e422b5f915 /sx-question.el | |
parent | c6dfd63b0ec04911f5a768d754b30663c7516db7 (diff) |
Use consistent tag formatting
Puts `mapconcat' to work by defining a helper function
`sx-question--tag-format' and `concat'ing them with ` '. Simpler, more
maintainable construction.
Diffstat (limited to 'sx-question.el')
-rw-r--r-- | sx-question.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sx-question.el b/sx-question.el index d3fd79f..0142929 100644 --- a/sx-question.el +++ b/sx-question.el @@ -73,6 +73,10 @@ With optional argument predicate, use it instead of `<'." (cdr (assoc property x)) (cdr (assoc property y)))) +(defun sx-question--tag-format (tag) + "Formats TAG for display" + (concat "[" tag "]")) + (provide 'sx-question) ;;; sx-question.el ends here |