aboutsummaryrefslogtreecommitdiff
path: root/sx-tag.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-15 22:02:41 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-15 22:02:41 -0200
commitfeb8082bac11154d4f6cc768add49bd9b7c0c107 (patch)
tree48d3154d5e91f3a4b9bfba955bb7de51acec5db1 /sx-tag.el
parent2fd860b5a17fe3f8b7bc3759a79bb7a2ae343bf2 (diff)
Turn tags into buttons
Diffstat (limited to 'sx-tag.el')
-rw-r--r--sx-tag.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/sx-tag.el b/sx-tag.el
index d69f330..ba32544 100644
--- a/sx-tag.el
+++ b/sx-tag.el
@@ -137,7 +137,12 @@ tags."
;;; Printing
(defun sx-tag--format (tag)
"Formats TAG for display."
- (concat "[" tag "]"))
+ (with-temp-buffer
+ (insert-text-button (concat "[" tag "]")
+ 'sx-button-copy tag
+ 'sx-tag tag
+ :type 'sx-button-tag)
+ (buffer-string)))
(provide 'sx-tag)
;;; sx-tag.el ends here