diff options
-rw-r--r-- | .version | 1 | ||||
-rw-r--r-- | lisp/mastodon.el | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/.version b/.version new file mode 100644 index 0000000..6c6aa7c --- /dev/null +++ b/.version @@ -0,0 +1 @@ +0.1.0
\ No newline at end of file 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." |