diff options
author | jao <jao@gnu.org> | 2020-08-03 22:42:40 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2020-08-03 22:42:40 +0100 |
commit | e875f5a180d7af7df34210d88189d16ab90d51e5 (patch) | |
tree | 3d87e54d32a2adbe75df7180d1f1b7b6fdb1593e /emms | |
parent | d20944171c05350b2621e719ae26111e6b883470 (diff) | |
download | elibs-e875f5a180d7af7df34210d88189d16ab90d51e5.tar.gz elibs-e875f5a180d7af7df34210d88189d16ab90d51e5.tar.bz2 |
random album: autoloads
Diffstat (limited to 'emms')
-rw-r--r-- | emms/jao-emms-random-album.el | 9 |
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) |