diff options
author | Johnson Denen <johnson.denen@gmail.com> | 2017-04-09 23:32:53 -0400 |
---|---|---|
committer | Johnson Denen <johnson.denen@gmail.com> | 2017-04-09 23:32:53 -0400 |
commit | 76476584ab82707fd2431c7a46266faba9b729c2 (patch) | |
tree | 64613e6035ec2b6d30c707832b6c3e59831deb58 /lisp/mastodon.el | |
parent | dc66e44c0f7ad6647a50e62d158dc9ed5526dbfe (diff) |
Add versioning
- .version file to track
- `mastodon-version' function to display
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 8 |
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." |