aboutsummaryrefslogtreecommitdiff
path: root/sx-button.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-02 00:43:37 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-02 00:43:37 +0000
commit142916ca3639995e7a06277ded627b3b01ee4931 (patch)
tree665403585b7653e3a22cb66d471c49eb018cad47 /sx-button.el
parentc6d0ee75c520041e9117422f7b8d5e86ca6cd5d4 (diff)
Add an answer button
Diffstat (limited to 'sx-button.el')
-rw-r--r--sx-button.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/sx-button.el b/sx-button.el
index c1abf90..cd01598 100644
--- a/sx-button.el
+++ b/sx-button.el
@@ -121,6 +121,14 @@ code-block."
'action #'sx-comment
:supertype 'sx-button)
+(define-button-type 'sx-button-answer
+ 'help-echo (concat "mouse-1, RET"
+ (propertize ": write an answer"
+ 'face 'minibuffer-prompt))
+ 'face 'custom-button
+ 'action #'sx-answer
+ :supertype 'sx-button)
+
(provide 'sx-button)
;;; sx-button.el ends here