summaryrefslogtreecommitdiffhomepage
path: root/emms
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2020-08-03 22:42:40 +0100
committerjao <jao@gnu.org>2020-08-03 22:42:40 +0100
commite875f5a180d7af7df34210d88189d16ab90d51e5 (patch)
tree3d87e54d32a2adbe75df7180d1f1b7b6fdb1593e /emms
parentd20944171c05350b2621e719ae26111e6b883470 (diff)
downloadelibs-e875f5a180d7af7df34210d88189d16ab90d51e5.tar.gz
elibs-e875f5a180d7af7df34210d88189d16ab90d51e5.tar.bz2
random album: autoloads
Diffstat (limited to 'emms')
-rw-r--r--emms/jao-emms-random-album.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/emms/jao-emms-random-album.el b/emms/jao-emms-random-album.el
index 7aced29..9c3246d 100644
--- a/emms/jao-emms-random-album.el
+++ b/emms/jao-emms-random-album.el
@@ -71,22 +71,26 @@
;; User interface
+;;;###autoload
(defun jao-emms-random-album-start ()
(interactive)
(setq jao-emms-random-album-p t)
(jao-emms-random-album-next))
+;;;###autoload
(defun jao-emms-random-album-stop ()
(interactive)
(setq jao-emms-random-album-p nil)
(emms-stop))
+;;;###autoload
(defun jao-emms-random-album-toggle ()
(interactive)
(setq jao-emms-random-album-p (not jao-emms-random-album-p))
(message "Random album %s"
(if jao-emms-random-album-p "enabled" "disabled")))
+;;;###autoload
(defun jao-emms-random-album-next ()
(interactive)
(save-excursion
@@ -99,14 +103,13 @@
(jao-notify album "Next album" jao-emms-random-album-notify-icon)))
(emms-browser-bury-buffer)))
+;;;###autoload
(defun jao-emms-random-album-reset ()
(interactive)
(setq jao-emms-random-lines nil)
(jao-emms-random-lines-save))
-;;;###autoload
-(defun jao-emms-random-album-setup ()
- (setq emms-player-next-function 'jao-emms-next-noerror))
+(setq emms-player-next-function 'jao-emms-next-noerror)
(provide 'jao-emms-random-album)