diff options
Diffstat (limited to 'sx-button.el')
-rw-r--r-- | sx-button.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sx-button.el b/sx-button.el index ed94558..afc1cf7 100644 --- a/sx-button.el +++ b/sx-button.el @@ -25,6 +25,7 @@ (require 'sx) (require 'sx-question) +(require 'sx-interaction) ;;; Command definitions @@ -92,6 +93,13 @@ This is usually a link's URL, or the content of a code block." 'action #'sx-button-follow-link :supertype 'sx-button) +(define-button-type 'sx-button-comment + 'help-echo (concat "mouse-1, RET" + (propertize ": write a comment" + 'face 'minibuffer-prompt)) + 'action #'sx-comment + :supertype 'sx-button) + (provide 'sx-button) ;;; sx-button.el ends here |