aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-20 14:56:25 +0300
committerThanos Apollo <[email protected]>2023-07-20 14:56:25 +0300
commitf987a51a111d670a56b9f65cb405c83fd16f76ca (patch)
treea72f50eb5aa3e6970717dcf0dc3d0a664497d6fc
parentbd82655687325f159fcfc74e97ca854ee772aa65 (diff)
Add yeetube-version
Add version message function for debugging/support issues.
-rw-r--r--yeetube.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/yeetube.el b/yeetube.el
index 9a7ae01..9863dc7 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -6,6 +6,8 @@
;; Keywords: extensions youtube videos invidious
;; URL: https://git.sr.ht/~thanosapollo/yeetube.el
;; Version: 1.3.3
+(defvar yeetube--version '1.3.3)
+
;; Package-Requires: ((emacs "27.2"))
;; This program is free software; you can redistribute it and/or modify
@@ -441,6 +443,12 @@ OPERATION & WHERE are required to work with ='add-variable-watcher."
(goto-char (mark))))
+(defun yeetube-version ()
+ "Show Yeetube Version."
+ (interactive)
+ (message "Yeetube Version: %s" yeetube--version))
+
+
;; Variable to watch
(add-variable-watcher 'yeetube-download-directory #'yeetube-update-info)
(add-variable-watcher 'yeetube-player #'yeetube-update-info)