aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index 7fb5c9a..801692b 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -91,13 +91,8 @@ Use. e.g. \"%c\" for your locale's date and time format."
If USER is non-nil, insert after @ symbol to begin new toot.
If REPLY-TO-ID is non-nil, attach new toot to a conversation."
(interactive)
- (require 'mastodon-toot nil t)
- (progn
- (switch-to-buffer-other-window (get-buffer-create "*new toot*"))
- (when user
- (insert (format "@%s " user))
- (setq mastodon-toot--reply-to-id reply-to-id))
- (mastodon-toot-mode t)))
+ (require 'mastodon-toot nil t)
+ (mastodon-toot--compose-buffer user reply-to-id))
;;;###autoload
(add-hook 'mastodon-mode-hook (lambda ()