From 76476584ab82707fd2431c7a46266faba9b729c2 Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Sun, 9 Apr 2017 23:32:53 -0400 Subject: Add versioning - .version file to track - `mastodon-version' function to display --- lisp/mastodon.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lisp') 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." -- cgit v1.2.3