aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index e69e10d..f44b5c7 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -25,6 +25,14 @@
(defvar mastodon--api-version "v1")
+(defun mastodon-version ()
+ "Message package version."
+ (interactive)
+ (with-temp-buffer
+ (insert-file-contents "../.version")
+ (message
+ (concat "mastodon.el v" (buffer-string)))))
+
;;;###autoload
(defun mastodon-toot ()
"Update a Mastodon instance with new toot. Content is captured in a new buffer."