diff options
author | Johnson Denen <johnson.denen@gmail.com> | 2017-04-19 09:36:57 -0400 |
---|---|---|
committer | Johnson Denen <johnson.denen@gmail.com> | 2017-04-19 09:36:57 -0400 |
commit | 20f5b32b17afa33441b0ca5d2d5c54a254a2e565 (patch) | |
tree | 69906c0b93d82ec667d5068830e326bdf201802a /lisp/mastodon.el | |
parent | 232c621682f1d7b7be4a8b7cd14efc15033a44e3 (diff) |
Fix #25 with const variable
Delete .version file
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 8 |
1 files changed, 4 insertions, 4 deletions
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 () |