diff options
-rw-r--r-- | .version | 1 | ||||
-rw-r--r-- | lisp/mastodon.el | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/.version b/.version deleted file mode 100644 index 60a2d3e..0000000 --- a/.version +++ /dev/null @@ -1 +0,0 @@ -0.4.0
\ No newline at end of file diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 4337634..8abdb43 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -37,6 +37,9 @@ :prefix "mastodon-" :group 'external) +(defconst mastodon-version "0.4.0" + "Current `mastodon' package version.") + (defcustom mastodon-instance-url "https://mastodon.social" "Base URL for the Masto instance from which you toot." :group 'mastodon @@ -63,10 +66,7 @@ (defun mastodon-version () "Message package version." (interactive) - (with-temp-buffer - (insert-file-contents "../.version") - (message - (concat "mastodon.el v" (buffer-string))))) + (message "Mastodon version %s" mastodon-version)) ;;;###autoload (defun mastodon () |