aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authorJohnson Denen <johnson.denen@gmail.com>2017-04-09 23:01:08 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-04-09 23:19:45 -0400
commit5cf1dd9c2fb4279dfb603a77b4ce6545f954169d (patch)
tree84c8af2fafb7c3530e0e70a918f270c3db9668cf /lisp/mastodon-toot.el
parentbf6f3632e8afbdde33a894348e345830fe003b97 (diff)
Fix #8 flycheck issues
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el18
1 files changed, 16 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 7744cdd..60ab2db 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1,8 +1,21 @@
+;;; mastodon-toot.el --- Minor mode for sending Mastodon toots
+
+;;; Commentary:
+
+;; mastodon.el is an Emacs client for Mastodon, the federated microblogging
+;; social network. It is very much a work-in-progress, but it is a labor of
+;; love.
+
+;; mastodon-toot.el supports POSTing status data to Mastodon.
+
+;;; Code:
+
(require 'mastodon-auth)
(require 'mastodon-http)
(defgroup mastodon-toot nil
"Capture Mastodon toots."
+ :prefix "mastodon-toot-"
:group 'mastodon)
(defun mastodon-toot--send-triage (status)
@@ -13,7 +26,7 @@ STATUS is passed by `url-retrieve'."
(lambda () (switch-to-buffer (current-buffer))))) ;; FIXME
(defun mastodon-toot--send ()
- "Kills new-toot buffer/window and POSTs contents to the Mastodon instance."
+ "Kill new-toot buffer/window and POST contents to the Mastodon instance."
(interactive)
(let ((toot (buffer-string))
(endpoint (mastodon--api-for "statuses")))
@@ -27,7 +40,7 @@ STATUS is passed by `url-retrieve'."
(mastodon--access-token))))))))
(defun mastodon-toot--cancel ()
- "Kills new-toot buffer/window. Does not POST content to Mastodon."
+ "Kill new-toot buffer/window. Does not POST content to Mastodon."
(interactive)
(kill-buffer-and-window))
@@ -45,3 +58,4 @@ STATUS is passed by `url-retrieve'."
:global nil)
(provide 'mastodon-toot)
+;;; mastodon-toot.el ends here